[webkit-help] difficulties creating a new Element attribute
Alexander Shulgin
alexander.shulgin at yessoftware.com
Fri Aug 20 05:23:03 PDT 2010
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
More information about the webkit-help
mailing list