< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java

Print this page

        

@@ -720,21 +720,25 @@
      * Generates a SECTION tag with role attribute.
      *
      * @return an HtmlTree object for the SECTION tag
      */
     public static HtmlTree SECTION() {
-        return new HtmlTree(HtmlTag.SECTION);
+        HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION);
+        htmltree.setRole(Role.REGION);
+        return htmltree;
     }
 
     /**
      * Generates a SECTION tag with role attribute and some content.
      *
      * @param body content of the section tag
      * @return an HtmlTree object for the SECTION tag
      */
     public static HtmlTree SECTION(Content body) {
-        return new HtmlTree(HtmlTag.SECTION, nullCheck(body));
+        HtmlTree htmltree = new HtmlTree(HtmlTag.SECTION, nullCheck(body));
+        htmltree.setRole(Role.REGION);
+        return htmltree;
     }
 
     /**
      * Generates a SMALL tag with some content.
      *
< prev index next >