Bug 106849 - [Microdata] propertiesCollection[name] should return undefined if item doesn't have a property named 'name'
Summary: [Microdata] propertiesCollection[name] should return undefined if item doesn'...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Arko Saha
URL:
Keywords:
Depends on:
Blocks: 92986
  Show dependency treegraph
 
Reported: 2013-01-14 17:53 PST by Arko Saha
Modified: 2013-01-15 10:50 PST (History)
5 users (show)

See Also:


Attachments
Patch (4.58 KB, patch)
2013-01-14 18:01 PST, Arko Saha
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arko Saha 2013-01-14 17:53:56 PST
Test:

<html>
<body>
<div id="myDiv" itemscope><div itemprop="bar"> </div></div>
<script type="text/javascript">
    alert(document.getElementById("myDiv").properties['foo']);
</script>
</body>
</html>

Expected: Should return undefined.
Actual: Returns [object PropertyNodeList]

This issue is observed in chromium port only.
Comment 1 Arko Saha 2013-01-14 18:01:53 PST
Created attachment 182671 [details]
Patch
Comment 2 Kentaro Hara 2013-01-15 01:20:07 PST
Comment on attachment 182671 [details]
Patch

Looks good.
Comment 3 WebKit Review Bot 2013-01-15 10:50:41 PST
Comment on attachment 182671 [details]
Patch

Clearing flags on attachment: 182671

Committed r139756: <http://trac.webkit.org/changeset/139756>
Comment 4 WebKit Review Bot 2013-01-15 10:50:45 PST
All reviewed patches have been landed.  Closing bug.