Sync up with Parsoid parserTests.
[lhc/web/wiklou.git] / tests / parser / parserTests.txt
index 7437a8c..d0a3d08 100644 (file)
@@ -20681,6 +20681,15 @@ HTML5 data attributes
 <p data-abc-def_hij="" data-parsoid='{"stx":"html"}'>Quuz</p>
 !! end
 
+!! test
+Strip reserved data attributes
+!! wikitext
+<div data-mw="foo" data-parsoid="bar" data-mw-someext="baz" data-ok="fred" data-ooui="xyzzy" data-bad:ns="ns">d</div>
+!! html
+<div data-ok="fred">d</div>
+
+!! end
+
 !! test
 percent-encoding and + signs in internal links (Bug 26410)
 !! wikitext