[Webkit-unassigned] [Bug 71510] [Microdata] LayoutTests/fast/dom/MicroData/itemid-attribute-test.html assertion failure in Element::getURLAttribute()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 8 10:41:11 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=71510
Darin Adler <darin at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #113792|review? |review+
Flag| |
--- Comment #6 from Darin Adler <darin at apple.com> 2011-11-08 10:41:11 PST ---
(From update of attachment 113792)
View in context: https://bugs.webkit.org/attachment.cgi?id=113792&action=review
> Source/WebCore/html/HTMLElement.cpp:1004
> +bool HTMLElement::isURLAttribute(Attribute* attribute) const
> +{
> +#if ENABLE(MICRODATA)
> + return attribute->name() == itemidAttr;
> +#else
> + return false;
> +#endif
> +}
This will fail to compile on platforms where we have MICRODATA off and we have unused argument warnings on.
> Source/WebCore/html/HTMLElement.h:79
> + virtual bool isURLAttribute(Attribute*) const;
This should be protected, not public.
> Source/WebCore/html/HTMLInputElement.cpp:1295
> + return (attr->name() == srcAttr || attr->name() == formactionAttr || HTMLTextFormControlElement::isURLAttribute(attr));
Should remove the unneeded parentheses here.
> Source/WebCore/html/HTMLObjectElement.cpp:387
> + return (attr->name() == dataAttr || (attr->name() == usemapAttr && attr->value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(attr));
Should remove the unneeded parentheses here.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list