On 20.08.2010 15:20, Luka Napotnik wrote:
Hello.
I'm having difficulties understanding the Element::setAttribute(const
QualifiedName&, const AtomicString& value, ExceptionCode&) method.
What's a qualified name and it's constructor arguments (prefix,
localName and namespaceURI)? I want to add a new attribute, say
"my_attr" with a value "my_value".
Take a look at this overload which doesn't require qualified name:
void Element::setAttribute(const AtomicString& name, const AtomicString&
value, ExceptionCode&);
Qualified name has something to do with XML/XHTML, I believe. Don't
know if you are allowed to come up with your own "my_something"
attributes in HTML, but you may give it a try.
--
Alex
_______________________________________________
webkit-help mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-help