Bug 489096 - HTML5 support
diff --git a/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/checkitem.xml b/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/checkitem.xml
index feed36c..29059ba 100644
--- a/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/checkitem.xml
+++ b/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/checkitem.xml
@@ -3125,4 +3125,16 @@
<desc>If color is used within an image to convey information, If you use color to convey information, make sure the information is also represented another way.</desc>
</description>
</checkitem>
+ <checkitem type="info" id="C_600.20">
+ <guideline>
+ <gItem techniques="G10,G108,G135" id="4.1.2" name="JIS"/>
+ <gItem techniques="G10,G108,G135" id="4.1.2" name="WCAG 2.0"/>
+ </guideline>
+ <metrics>
+ <mItem name="Robust"/>
+ </metrics>
+ <description>
+ <desc>Please use markup features and accessibility APIs that defined for each technology to expose the name, role, and state.</desc>
+ </description>
+ </checkitem>
</checker-config>
diff --git a/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description.properties b/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description.properties
index b78dd9b..547b83a 100644
--- a/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description.properties
+++ b/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2005, 2013 IBM Corporation and others.
+# Copyright (c) 2005, 2016 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -246,4 +246,5 @@
C_600.16= Check that a submit button is provided to initiate a change of context.{0}
C_600.17= Ensuring that opening and closing tags are used according to specification, id attributes are unique on a Web page, and elements do not contain duplicate attributes.
C_600.18= Using markup features to expose the name and role, allow user-settable properties to be directly set, and provide notification of changes. (Example: Using a standard user interface component (such as HTML form) in a markup language (e.g., HTML))
-C_600.19= If color is used within an image to convey information, If you use color to convey information, make sure the information is also represented another way.
\ No newline at end of file
+C_600.19= If color is used within an image to convey information, If you use color to convey information, make sure the information is also represented another way.
+C_600.20= Please use markup features and accessibility APIs that defined for each technology to expose the name, role, and state.({0})
diff --git a/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description_ja.properties b/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description_ja.properties
index bd7871f..6529b3f 100644
--- a/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description_ja.properties
+++ b/plugins/org.eclipse.actf.examples.adesigner.eval.html/resources/description_ja.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2005, 2013 IBM Corporation and others.
+# Copyright (c) 2005, 2016 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
@@ -246,4 +246,5 @@
C_600.16= \u72b6\u6cc1\u306e\u5909\u5316\u3092\u958b\u59cb\u3059\u308b\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002{0}
C_600.17= \u958b\u59cb\u30bf\u30b0\u53ca\u3073\u7d42\u4e86\u30bf\u30b0\u304c\u4ed5\u69d8\u306b\u6e96\u3058\u3066\u7528\u3044\u3089\u308c\u3066\u304a\u308a\u3001ID\u306e\u91cd\u8907\u3084\u3001\u540c\u4e00\u5c5e\u6027\u304c\u8907\u6570\u56de\u6307\u5b9a\u3055\u308c\u305f\u30bf\u30b0\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002
C_600.18= \u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3092\u7528\u3044\u3066\u540d\u524d\u53ca\u3073\u5f79\u5272\u3092\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u63d0\u4f9b\u3057\u3001\u5229\u7528\u8005\u304c\u8a2d\u5b9a\u53ef\u80fd\u306a\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u76f4\u63a5\u8a2d\u5b9a\u53ef\u80fd\u306b\u3057\u3001\u5909\u5316\u3092\u901a\u77e5\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff08\u4f8b\uff1a \u30de\u30fc\u30af\u30a2\u30c3\u30d7\u8a00\u8a9e\uff08HTML\u306a\u3069\uff09\u3067\u6a19\u6e96\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u30fb\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\uff08HTML\u306e\u30d5\u30a9\u30fc\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306a\u3069\uff09\u3092\u4f7f\u7528\u3059\u308b\u3002\uff09
-C_600.19= \u60c5\u5831\u3092\u4f1d\u3048\u308b\u753b\u50cf\u306e\u4e2d\u3067\u8272\u3092\u7528\u3044\u3066\u3044\u308b\u5834\u5408\u3001\u30d1\u30bf\u30fc\u30f3\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7528\u3044\u3066\u8272\u4ee5\u5916\u306e\u65b9\u6cd5\u3067\u3082\u60c5\u5831\u3092\u5165\u624b\u53ef\u80fd\u306b\u3057\u3066\u304f\u3060\u3055\u3044.
\ No newline at end of file
+C_600.19= \u60c5\u5831\u3092\u4f1d\u3048\u308b\u753b\u50cf\u306e\u4e2d\u3067\u8272\u3092\u7528\u3044\u3066\u3044\u308b\u5834\u5408\u3001\u30d1\u30bf\u30fc\u30f3\u3084\u30c6\u30ad\u30b9\u30c8\u3092\u7528\u3044\u3066\u8272\u4ee5\u5916\u306e\u65b9\u6cd5\u3067\u3082\u60c5\u5831\u3092\u5165\u624b\u53ef\u80fd\u306b\u3057\u3066\u304f\u3060\u3055\u3044.
+C_600.20= \u5404\u6280\u8853\u3067\u5b9a\u3081\u3089\u308c\u305f\u30de\u30fc\u30af\u30a2\u30c3\u30d7\u3084\u30a2\u30af\u30bb\u30b7\u30d3\u30ea\u30c6\u30a3API\u3092\u7528\u3044\u3066\u540d\u524d\u3001\u5f79\u5272\u304a\u3088\u3073\u72b6\u614b\u3092\u30e6\u30fc\u30b6\u30fc\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306b\u63d0\u4f9b\u3057\u3066\u304f\u3060\u3055\u3044.({0})
diff --git a/plugins/org.eclipse.actf.examples.adesigner.eval.html/src/org/eclipse/actf/examples/adesigner/eval/html/internal/CheckEngine.java b/plugins/org.eclipse.actf.examples.adesigner.eval.html/src/org/eclipse/actf/examples/adesigner/eval/html/internal/CheckEngine.java
index 801b75c..772b04e 100644
--- a/plugins/org.eclipse.actf.examples.adesigner.eval.html/src/org/eclipse/actf/examples/adesigner/eval/html/internal/CheckEngine.java
+++ b/plugins/org.eclipse.actf.examples.adesigner.eval.html/src/org/eclipse/actf/examples/adesigner/eval/html/internal/CheckEngine.java
@@ -1274,6 +1274,14 @@
addCheckerProblem("C_600.16", "(" + Messages.Dynamic + tmpS + ")"); //$NON-NLS-1$
}
+ NodeList tmpNL = target.getElementsByTagName("math");
+ if (tmpNL.getLength() > 0) {
+ addCheckerProblem("C_600.20", "MathML",tmpNL);
+ }
+ tmpNL = target.getElementsByTagName("svg");
+ if (tmpNL.getLength() > 0) {
+ addCheckerProblem("C_600.20", "SVG",tmpNL);
+ }
}
private void item_31() {