diff --git a/modules/web/html/html_builder_bind.cpp b/modules/web/html/html_builder_bind.cpp
index 938ee1960..bef8e78b1 100644
--- a/modules/web/html/html_builder_bind.cpp
+++ b/modules/web/html/html_builder_bind.cpp
@@ -683,7 +683,7 @@ Ref<_HTMLTag> _HTMLTag::rel_search() {
}
Ref<_HTMLTag> _HTMLTag::rel_tag() {
- attrib("rel", "tag");
+ attrib("rel", "_tag");
return Ref<_HTMLTag>(this);
}
@@ -858,10 +858,10 @@ Ref<_HTMLTag> _HTMLTag::attrib(const String &attr, const String &val) {
return Ref<_HTMLTag>(this);
}
-Ref<_HTMLTag> _HTMLTag::start(const String &p_tag, const bool p_simple) {
+Ref<_HTMLTag> _HTMLTag::start(const String &p__tag, const bool p_simple) {
simple = p_simple;
- result = "<" + p_tag;
+ result = "<" + p__tag;
return Ref<_HTMLTag>(this);
}
@@ -1086,7 +1086,7 @@ void _HTMLTag::_bind_methods() {
ClassDB::bind_method(D_METHOD("attrib", "attr", "val"), &_HTMLTag::attrib);
- ClassDB::bind_method(D_METHOD("start", "new_tag", "simple"), &_HTMLTag::start, false);
+ ClassDB::bind_method(D_METHOD("start", "new__tag", "simple"), &_HTMLTag::start, false);
ClassDB::bind_method(D_METHOD("reset"), &_HTMLTag::reset);
ClassDB::bind_method(D_METHOD("close"), &_HTMLTag::close);
@@ -1114,27 +1114,27 @@ Ref<_HTMLBuilder> _HTMLBuilder::comment(const String &val) {
Ref<_HTMLTag> _HTMLBuilder::doctype(const String &val) {
write_tag();
- return tag->start("!DOCTYPE");
+ return _tag->start("!DOCTYPE");
}
Ref<_HTMLTag> _HTMLBuilder::a(const String &href, const String &cls, const String &id) {
write_tag();
- tag->start("a");
+ _tag->start("a");
if (href != "") {
- tag->href(href);
+ _tag->href(href);
}
if (cls != "") {
- tag->cls(cls);
+ _tag->cls(cls);
}
if (id != "") {
- tag->id(id);
+ _tag->id(id);
}
- return tag;
+ return _tag;
}
Ref<_HTMLBuilder> _HTMLBuilder::fa(const String &href, const String &body, const String &cls, const String &id) {
@@ -1148,209 +1148,209 @@ Ref<_HTMLBuilder> _HTMLBuilder::fa(const String &href, const String &body, const
Ref<_HTMLTag> _HTMLBuilder::abbr() {
write_tag();
- return tag->start("abbr");
+ return _tag->start("abbr");
}
Ref<_HTMLTag> _HTMLBuilder::acronym() { // Not supported in HTML5. Use instead. Defines an acronym
write_tag();
- return tag->start("acronym");
+ return _tag->start("acronym");
}
Ref<_HTMLTag> _HTMLBuilder::address() {
write_tag();
- return tag->start("address");
+ return _tag->start("address");
}
Ref<_HTMLTag> _HTMLBuilder::applet() { // Not supported in HTML5. Use