Summary: | Microdata item with itemprop attribute should not include the item itself in the HTMLPropertiesCollection | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Arko Saha <arko> | ||||||
Component: | DOM | Assignee: | Arko Saha <arko> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | rniwa, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 92986 | ||||||||
Attachments: |
|
Description
Arko Saha
2012-08-10 06:18:10 PDT
Created attachment 157728 [details]
Patch
Comment on attachment 157728 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=157728&action=review > Source/WebCore/dom/PropertyNodeList.cpp:86 > - if (testElement == m_itemRefElementsCache[i] || elementIsPropertyOfRefElement(testElement, m_itemRefElementsCache[i])) { > + Node* refElement = m_itemRefElementsCache[i]; > + if (testElement == refElement || elementIsPropertyOfRefElement(testElement, refElement)) { Why are we making this change? > Source/WebCore/html/HTMLPropertiesCollection.cpp:96 > + Node* ownerNode = this->base(); Can we call ownerNode() instead here so that there is no confusion about base vs. ownerNode? > Source/WebCore/html/HTMLPropertiesCollection.cpp:99 > + for (; current; current = nextNodeWithProperty(base, current, ownerNode)) { We should probably rename base to rootNode here. It's too confusing. (make sure to update terms in nextNodeWithProperty. Created attachment 157838 [details]
Updated patch
Incorporated review comments.
Comment on attachment 157838 [details] Updated patch Clearing flags on attachment: 157838 Committed r125348: <http://trac.webkit.org/changeset/125348> All reviewed patches have been landed. Closing bug. |