Class MarkupUtil

java.lang.Object
org.apache.wicket.markup.html.MarkupUtil

public class MarkupUtil extends Object
HTML5 helper
Author:
Juergen Donnerstag
  • Constructor Details

  • Method Details

    • isMarkupHtml5Compliant

      public static boolean isMarkupHtml5Compliant(MarkupContainer container)
      Parameters:
      container -
      Returns:
      True if the Page and all it's Panels, Borders etc. have HTML5 compliant markup. HTML5 markup is identified by <DOCTYPE html>
    • findStartTag

      public static IMarkupFragment findStartTag(IMarkupFragment markup, String tagName)
      Searches for tagName in the given markup.
      Parameters:
      markup -
      tagName -
      Returns:
      The IMarkupFragment corresponding to tagName. Null, if such tagName is not found