Пример #1
0
 private static void _checkPre(final HCPre aPre) {
   final IHCElement<?> aChild =
       HCUtils.recursiveGetFirstChildWithTagName(
           aPre,
           EHTMLElement.IMG,
           EHTMLElement.OBJECT,
           EHTMLElement.SMALL,
           EHTMLElement.SUB,
           EHTMLElement.SUP);
   if (aChild != null)
     consistencyWarning("PRE elements contains forbidden tag " + aChild.getElement());
 }
Пример #2
0
 private static void _checkButton(final HCButton aButton) {
   final IHCElement<?> aChild =
       HCUtils.recursiveGetFirstChildWithTagName(
           aButton,
           EHTMLElement.A,
           EHTMLElement.INPUT,
           EHTMLElement.SELECT,
           EHTMLElement.TEXTAREA,
           EHTMLElement.LABEL,
           EHTMLElement.BUTTON,
           EHTMLElement.FORM,
           EHTMLElement.FIELDSET,
           EHTMLElement.IFRAME);
   if (aChild != null)
     consistencyWarning("BUTTON element contains forbidden tag " + aChild.getElement());
 }