Changeset 119822 in webkit


Ignore:
Timestamp:
Jun 8, 2012 5:16:48 AM (12 years ago)
Author:
arko@motorola.com
Message:

Microdata: An element with an empty itemprop= should not get listed in the .properties list.
https://bugs.webkit.org/show_bug.cgi?id=88235

Reviewed by Ryosuke Niwa.

Source/WebCore:

As per the specification change http://html5.org/r/6854, an element should be listed in .properties
if the elelement has an attribute itemprop specified and the element has one or more property names.

Test: fast/dom/MicroData/element-with-empty-itemprop.html

  • html/HTMLPropertiesCollection.cpp:

(WebCore::HTMLPropertiesCollection::itemAfter):

LayoutTests:

  • fast/dom/MicroData/element-with-empty-itemprop-expected.txt: Added.
  • fast/dom/MicroData/element-with-empty-itemprop.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r119820 r119822  
     12012-06-08  Arko Saha  <arko@motorola.com>
     2
     3        Microdata: An element with an empty itemprop='' should not get listed in the .properties list.
     4        https://bugs.webkit.org/show_bug.cgi?id=88235
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * fast/dom/MicroData/element-with-empty-itemprop-expected.txt: Added.
     9        * fast/dom/MicroData/element-with-empty-itemprop.html: Added.
     10
    1112012-06-08  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r119821 r119822  
     12012-06-08  Arko Saha  <arko@motorola.com>
     2
     3        Microdata: An element with an empty itemprop='' should not get listed in the .properties list.
     4        https://bugs.webkit.org/show_bug.cgi?id=88235
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        As per the specification change http://html5.org/r/6854, an element should be listed in .properties
     9        if the elelement has an attribute itemprop specified and the element has one or more property names.
     10
     11        Test: fast/dom/MicroData/element-with-empty-itemprop.html
     12
     13        * html/HTMLPropertiesCollection.cpp:
     14        (WebCore::HTMLPropertiesCollection::itemAfter):
     15
    1162012-06-07  Kinuko Yasuda  <kinuko@chromium.org>
    217
  • trunk/Source/WebCore/html/HTMLPropertiesCollection.cpp

    r113862 r119822  
    129129            continue;
    130130        HTMLElement* element = toHTMLElement(current);
    131         if (element->fastHasAttribute(itempropAttr)) {
     131        if (element->fastHasAttribute(itempropAttr) && element->itemProp()->length()) {
    132132            return element;
    133133        }
Note: See TracChangeset for help on using the changeset viewer.