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 or instead. Defines an embedded applet write_tag(); - return tag->start("applet"); + return _tag->start("applet"); } Ref<_HTMLTag> _HTMLBuilder::area() { write_tag(); - return tag->start("area"); + return _tag->start("area"); } Ref<_HTMLTag> _HTMLBuilder::article() { write_tag(); - return tag->start("article"); + return _tag->start("article"); } Ref<_HTMLTag> _HTMLBuilder::aside() { write_tag(); - return tag->start("aside"); + return _tag->start("aside"); } Ref<_HTMLTag> _HTMLBuilder::audio() { write_tag(); - return tag->start("audio"); + return _tag->start("audio"); } Ref<_HTMLTag> _HTMLBuilder::b() { write_tag(); - return tag->start("b"); + return _tag->start("b"); } Ref<_HTMLTag> _HTMLBuilder::basefont() { // Not supported in HTML5. Use CSS instead. Specifies a default color, size, and font for all text in a document write_tag(); - return tag->start("basefont"); + return _tag->start("basefont"); } Ref<_HTMLTag> _HTMLBuilder::bdi() { write_tag(); - return tag->start("bdi"); + return _tag->start("bdi"); } Ref<_HTMLTag> _HTMLBuilder::bdo() { write_tag(); - return tag->start("bdo"); + return _tag->start("bdo"); } Ref<_HTMLTag> _HTMLBuilder::big() { // Not supported in HTML5. Use CSS instead. Defines big text write_tag(); - return tag->start("big"); + return _tag->start("big"); } Ref<_HTMLTag> _HTMLBuilder::blockquote() { write_tag(); - return tag->start("blockquote"); + return _tag->start("blockquote"); } Ref<_HTMLTag> _HTMLBuilder::body() { write_tag(); - return tag->start("body"); + return _tag->start("body"); } Ref<_HTMLTag> _HTMLBuilder::br() { write_tag(); - return tag->start("br", true); + return _tag->start("br", true); } Ref<_HTMLTag> _HTMLBuilder::button() { write_tag(); - return tag->start("button"); + return _tag->start("button"); } Ref<_HTMLTag> _HTMLBuilder::canvas() { write_tag(); - return tag->start("canvas"); + return _tag->start("canvas"); } Ref<_HTMLTag> _HTMLBuilder::caption() { write_tag(); - return tag->start("caption"); + return _tag->start("caption"); } Ref<_HTMLTag> _HTMLBuilder::center() { // Not supported in HTML5. Use CSS instead. Defines centered text write_tag(); - return tag->start("center"); + return _tag->start("center"); } Ref<_HTMLTag> _HTMLBuilder::cite() { write_tag(); - return tag->start("cite"); + return _tag->start("cite"); } Ref<_HTMLTag> _HTMLBuilder::code() { write_tag(); - return tag->start("code"); + return _tag->start("code"); } Ref<_HTMLTag> _HTMLBuilder::col() { write_tag(); - return tag->start("col"); + return _tag->start("col"); } Ref<_HTMLTag> _HTMLBuilder::colgroup() { write_tag(); - return tag->start("colgroup"); + return _tag->start("colgroup"); } Ref<_HTMLTag> _HTMLBuilder::data() { write_tag(); - return tag->start("cite"); + return _tag->start("cite"); } Ref<_HTMLTag> _HTMLBuilder::datalist() { write_tag(); - return tag->start("datalist"); + return _tag->start("datalist"); } Ref<_HTMLTag> _HTMLBuilder::dd() { write_tag(); - return tag->start("dd"); + return _tag->start("dd"); } Ref<_HTMLTag> _HTMLBuilder::del() { write_tag(); - return tag->start("del"); + return _tag->start("del"); } Ref<_HTMLTag> _HTMLBuilder::details() { write_tag(); - return tag->start("details"); + return _tag->start("details"); } Ref<_HTMLTag> _HTMLBuilder::dfn() { write_tag(); - return tag->start("dfn"); + return _tag->start("dfn"); } Ref<_HTMLTag> _HTMLBuilder::dialog() { write_tag(); - return tag->start("dialog"); + return _tag->start("dialog"); } Ref<_HTMLTag> _HTMLBuilder::dir() { // Not supported in HTML5. Use