DOM Level 1 Test Suite made mobile-friendly

Due to the difficulty of using the existing DOM conformance test suites on a mobile devices, the Mobile Web Test Suites Working Group makes available these tests in a less demanding (although less automated as well) harness, in the hope of making it easier to check the conformance of mobile web user agents to the DOM specifications.

Please note that these tests, while automatically derived from the official test suites, have not been approved by the DOM Working Group and have received less scrutinity than the official test suite.

Should you find any bug in it, please report it to the Mobile Web Test Suites Working Group publicly archived mailing list <public-mwts@w3.org>.

At this time, only the tests for DOM Level 1 are provided; please let us know if having more tests under this format would be helpful.

Please note that if your browser supports it, it will go and navigate through the test cases automatically.

DOM Level 1 Tests

  1. documentgetdoctypenodtd
  2. documentinvalidcharacterexceptioncreateentref
  3. documentinvalidcharacterexceptioncreateentref1
  4. documentinvalidcharacterexceptioncreatepi
  5. documentinvalidcharacterexceptioncreatepi1
  6. hc_attrappendchild1
  7. hc_attrappendchild2
  8. hc_attrappendchild3
  9. hc_attrappendchild4
  10. hc_attrappendchild5
  11. hc_attrappendchild6
  12. hc_attrchildnodes1
  13. hc_attrchildnodes2
  14. hc_attrclonenode1
  15. hc_attrcreatedocumentfragment
  16. hc_attrcreatetextnode
  17. hc_attrcreatetextnode2
  18. hc_attreffectivevalue
  19. hc_attrfirstchild
  20. hc_attrgetvalue1
  21. hc_attrgetvalue2
  22. hc_attrhaschildnodes
  23. hc_attrinsertbefore1
  24. hc_attrinsertbefore2
  25. hc_attrinsertbefore3
  26. hc_attrinsertbefore4
  27. hc_attrinsertbefore5
  28. hc_attrinsertbefore6
  29. hc_attrinsertbefore7
  30. hc_attrlastchild
  31. hc_attrname
  32. hc_attrnextsiblingnull
  33. hc_attrnormalize
  34. hc_attrparentnodenull
  35. hc_attrprevioussiblingnull
  36. hc_attrremovechild1
  37. hc_attrremovechild2
  38. hc_attrreplacechild1
  39. hc_attrreplacechild2
  40. hc_attrsetvalue1
  41. hc_attrsetvalue2
  42. hc_attrspecifiedvalue
  43. hc_attrspecifiedvaluechanged
  44. hc_characterdataappenddata
  45. hc_characterdataappenddatagetdata
  46. hc_characterdatadeletedatabegining
  47. hc_characterdatadeletedataend
  48. hc_characterdatadeletedataexceedslength
  49. hc_characterdatadeletedatagetlengthanddata
  50. hc_characterdatadeletedatamiddle
  51. hc_characterdatagetdata
  52. hc_characterdatagetlength
  53. hc_characterdataindexsizeerrdeletedatacountnegative
  54. hc_characterdataindexsizeerrdeletedataoffsetgreater
  55. hc_characterdataindexsizeerrdeletedataoffsetnegative
  56. hc_characterdataindexsizeerrinsertdataoffsetgreater
  57. hc_characterdataindexsizeerrinsertdataoffsetnegative
  58. hc_characterdataindexsizeerrreplacedatacountnegative
  59. hc_characterdataindexsizeerrreplacedataoffsetgreater
  60. hc_characterdataindexsizeerrreplacedataoffsetnegative
  61. hc_characterdataindexsizeerrsubstringcountnegative
  62. hc_characterdataindexsizeerrsubstringnegativeoffset
  63. hc_characterdataindexsizeerrsubstringoffsetgreater
  64. hc_characterdatainsertdatabeginning
  65. hc_characterdatainsertdataend
  66. hc_characterdatainsertdatamiddle
  67. hc_characterdatareplacedatabegining
  68. hc_characterdatareplacedataend
  69. hc_characterdatareplacedataexceedslengthofarg
  70. hc_characterdatareplacedataexceedslengthofdata
  71. hc_characterdatareplacedatamiddle
  72. hc_characterdatasetnodevalue
  73. hc_characterdatasubstringexceedsvalue
  74. hc_characterdatasubstringvalue
  75. hc_commentgetcomment
  76. hc_documentcreateattribute
  77. hc_documentcreatecomment
  78. hc_documentcreatedocumentfragment
  79. hc_documentcreateelement
  80. hc_documentcreateelementcasesensitive
  81. hc_documentcreatetextnode
  82. hc_documentgetdoctype
  83. hc_documentgetelementsbytagnamelength
  84. hc_documentgetelementsbytagnametotallength
  85. hc_documentgetelementsbytagnamevalue
  86. hc_documentgetimplementation
  87. hc_documentgetrootnode
  88. hc_documentinvalidcharacterexceptioncreateattribute
  89. hc_documentinvalidcharacterexceptioncreateattribute1
  90. hc_documentinvalidcharacterexceptioncreateelement
  91. hc_documentinvalidcharacterexceptioncreateelement1
  92. hc_domimplementationfeaturenoversion
  93. hc_domimplementationfeaturenull
  94. hc_domimplementationfeaturexml
  95. hc_elementaddnewattribute
  96. hc_elementassociatedattribute
  97. hc_elementchangeattributevalue
  98. hc_elementcreatenewattribute
  99. hc_elementgetattributenode
  100. hc_elementgetattributenodenull
  101. hc_elementgetelementempty
  102. hc_elementgetelementsbytagname
  103. hc_elementgetelementsbytagnameaccessnodelist
  104. hc_elementgetelementsbytagnamenomatch
  105. hc_elementgetelementsbytagnamespecialvalue
  106. hc_elementgettagname
  107. hc_elementinuseattributeerr
  108. hc_elementinvalidcharacterexception
  109. hc_elementinvalidcharacterexception1
  110. hc_elementnormalize
  111. hc_elementnormalize2
  112. hc_elementnotfounderr
  113. hc_elementremoveattribute
  114. hc_elementremoveattributeaftercreate
  115. hc_elementremoveattributenode
  116. hc_elementreplaceattributewithself
  117. hc_elementreplaceexistingattribute
  118. hc_elementreplaceexistingattributegevalue
  119. hc_elementretrieveallattributes
  120. hc_elementretrieveattrvalue
  121. hc_elementretrievetagname
  122. hc_elementsetattributenodenull
  123. hc_elementwrongdocumenterr
  124. hc_entitiesremovenameditem1
  125. hc_entitiessetnameditem1
  126. hc_namednodemapchildnoderange
  127. hc_namednodemapgetnameditem
  128. hc_namednodemapinuseattributeerr
  129. hc_namednodemapnotfounderr
  130. hc_namednodemapnumberofnodes
  131. hc_namednodemapremovenameditem
  132. hc_namednodemapreturnattrnode
  133. hc_namednodemapreturnfirstitem
  134. hc_namednodemapreturnlastitem
  135. hc_namednodemapreturnnull
  136. hc_namednodemapsetnameditem
  137. hc_namednodemapsetnameditemreturnvalue
  138. hc_namednodemapsetnameditemthatexists
  139. hc_namednodemapsetnameditemwithnewvalue
  140. hc_namednodemapwrongdocumenterr
  141. hc_nodeappendchild
  142. hc_nodeappendchildchildexists
  143. hc_nodeappendchilddocfragment
  144. hc_nodeappendchildgetnodename
  145. hc_nodeappendchildinvalidnodetype
  146. hc_nodeappendchildnewchilddiffdocument
  147. hc_nodeappendchildnodeancestor
  148. hc_nodeattributenodeattribute
  149. hc_nodeattributenodename
  150. hc_nodeattributenodetype
  151. hc_nodeattributenodevalue
  152. hc_nodechildnodes
  153. hc_nodechildnodesappendchild
  154. hc_nodechildnodesempty
  155. hc_nodecloneattributescopied
  156. hc_nodeclonefalsenocopytext
  157. hc_nodeclonegetparentnull
  158. hc_nodeclonenodefalse
  159. hc_nodeclonenodetrue
  160. hc_nodeclonetruecopytext
  161. hc_nodecommentnodeattributes
  162. hc_nodecommentnodename
  163. hc_nodecommentnodetype
  164. hc_nodecommentnodevalue
  165. hc_nodedocumentfragmentnodename
  166. hc_nodedocumentfragmentnodetype
  167. hc_nodedocumentfragmentnodevalue
  168. hc_nodedocumentnodeattribute
  169. hc_nodedocumentnodename
  170. hc_nodedocumentnodetype
  171. hc_nodedocumentnodevalue
  172. hc_nodeelementnodeattributes
  173. hc_nodeelementnodename
  174. hc_nodeelementnodetype
  175. hc_nodeelementnodevalue
  176. hc_nodegetfirstchild
  177. hc_nodegetfirstchildnull
  178. hc_nodegetlastchild
  179. hc_nodegetlastchildnull
  180. hc_nodegetnextsibling
  181. hc_nodegetnextsiblingnull
  182. hc_nodegetownerdocument
  183. hc_nodegetownerdocumentnull
  184. hc_nodegetprevioussibling
  185. hc_nodegetprevioussiblingnull
  186. hc_nodehaschildnodes
  187. hc_nodehaschildnodesfalse
  188. hc_nodeinsertbefore
  189. hc_nodeinsertbeforedocfragment
  190. hc_nodeinsertbeforeinvalidnodetype
  191. hc_nodeinsertbeforenewchilddiffdocument
  192. hc_nodeinsertbeforenewchildexists
  193. hc_nodeinsertbeforenodeancestor
  194. hc_nodeinsertbeforenodename
  195. hc_nodeinsertbeforerefchildnonexistent
  196. hc_nodeinsertbeforerefchildnull
  197. hc_nodelistindexequalzero
  198. hc_nodelistindexgetlength
  199. hc_nodelistindexgetlengthofemptylist
  200. hc_nodelistindexnotzero
  201. hc_nodelistreturnfirstitem
  202. hc_nodelistreturnlastitem
  203. hc_nodelisttraverselist
  204. hc_nodeparentnode
  205. hc_nodeparentnodenull
  206. hc_noderemovechild
  207. hc_noderemovechildgetnodename
  208. hc_noderemovechildnode
  209. hc_noderemovechildoldchildnonexistent
  210. hc_nodereplacechild
  211. hc_nodereplacechildinvalidnodetype
  212. hc_nodereplacechildnewchilddiffdocument
  213. hc_nodereplacechildnewchildexists
  214. hc_nodereplacechildnodeancestor
  215. hc_nodereplacechildnodename
  216. hc_nodereplacechildoldchildnonexistent
  217. hc_nodetextnodeattribute
  218. hc_nodetextnodename
  219. hc_nodetextnodetype
  220. hc_nodetextnodevalue
  221. hc_nodevalue01
  222. hc_nodevalue02
  223. hc_nodevalue03
  224. hc_nodevalue04
  225. hc_nodevalue05
  226. hc_nodevalue06
  227. hc_nodevalue07
  228. hc_nodevalue08
  229. hc_notationsremovenameditem1
  230. hc_notationssetnameditem1
  231. hc_textindexsizeerrnegativeoffset
  232. hc_textindexsizeerroffsetoutofbounds
  233. hc_textparseintolistofelements
  234. hc_textsplittextfour
  235. hc_textsplittextone
  236. hc_textsplittextthree
  237. hc_textsplittexttwo
  238. hc_textwithnomarkup

Dominique Hazaël-Massieux

The development of these test cases was funded by the European Union through the 3GWeb European Project.

Copyright © 2007 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use rules apply.