aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLElement.webidl
diff options
context:
space:
mode:
authorVijay Hebbar <vijayhebbar91@gmail.com>2017-10-21 23:46:55 +0000
committerChirag Jain <csjain@ncsu.edu>2017-11-06 15:11:50 -0500
commit4a43dba8d7ee1ed8247a97cd00120cbde106b28a (patch)
tree590244029135081fd0d2feaeb16c1e5c24d848b8 /components/script/dom/webidls/HTMLElement.webidl
parent88505dc2ffc31efa614e1a5070a9bc23feded30a (diff)
downloadservo-4a43dba8d7ee1ed8247a97cd00120cbde106b28a.tar.gz
servo-4a43dba8d7ee1ed8247a97cd00120cbde106b28a.zip
Add implementation for itemprop and itemtype
Created test file Added the stub methods for itemprop and itemscope Resolved html5ever dependency, added ItemScope and ItemProp attr Resolving dependency Added pref override on metadata attributes Resetting to original state due to change in requirement Reverted adding attributes 1. add a customized implementation of parse_plain_attribute 2. add the following methods to HTMLElement.webidl added itemprop and itemtype, enabled pref in test Added initial implementation for getting itemprop property values Adding the wireframe for testing Implemented function to handle itemType Corrected typo Fixed typo bug in code Handling duplicates for itemtype attribute values Added the test suite structure Added test for extra space Added test for regular test values Added test cases for Single property values Test cases to check absence of itemtype and itemprop attributes Added code to handle absence of itemtype or itemprop attributes Added shell script to run all test cases cleared up Cargo file Tidying up Removed the local test file Removed new line for test-tidy Ordered key in prefs.json Fixes for test-tidy Enabled test preferences Created test using wpt Creating WPT Tests for Regular and Single Prop Types Fixed the Regular type test Fixed tests Removed old test case metadata Incorporate review changes from PR Updated MANIFEST to sync test cases Making changed suggested in review Removed editor folding Removed unnecessary code Resolving cargo conflicts Updated PropertyNames and itemtypes implementation Trying different data in test case Updated manifest Updated code based on reviews
Diffstat (limited to 'components/script/dom/webidls/HTMLElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLElement.webidl5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/webidls/HTMLElement.webidl b/components/script/dom/webidls/HTMLElement.webidl
index 845b4445f9c..7c1b0d62c21 100644
--- a/components/script/dom/webidls/HTMLElement.webidl
+++ b/components/script/dom/webidls/HTMLElement.webidl
@@ -18,9 +18,14 @@ interface HTMLElement : Element {
// microdata
// attribute boolean itemScope;
+
// attribute DOMString itemId;
//readonly attribute HTMLPropertiesCollection properties;
// attribute any itemValue; // acts as DOMString on setting
+ [Pref="dom.microdata.testing.enabled"]
+ sequence<DOMString>? propertyNames();
+ [Pref="dom.microdata.testing.enabled"]
+ sequence<DOMString>? itemtypes();
// user interaction
[CEReactions]