mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 507 forks source link

escaping of colons for namespaced tags #2751

Closed Aybee closed 8 years ago

Aybee commented 8 years ago

http://mootools.net/core/docs/1.5.2/Element/Element#Element:constructor Because the element name is parsed as a CSS selector, colons in namespaced tags have to be escaped. So new Element('fb\:name') becomes <fb:name>.

This will only work if you use double slashes for escaping: ('fb\\:name')