/** * Constructs an Acronym * <p> * * @param text */ public Acronym(String text) { this(); setText(text); }
/** * Differences Between HTML and HTML 5 * <p> * The >acronym< tag is not supported in HTML5. Use the >abbr< tag instead. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() == HTMLVersions.HTML5) { setTag("abbr"); } } catch (Exception e) { Acronym.LOG.log(Level.FINE, "Unable to determine whether HTML or HTML5. Document type not set?", e); } } }
/** * Differences Between HTML and HTML 5 * <p> * The >acronym< tag is not supported in HTML5. Use the >abbr< tag instead. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() == HTMLVersions.HTML5) { setTag("abbr"); } } catch (Exception e) { Acronym.LOG.log(Level.FINE, "Unable to determine whether HTML or HTML5. Document type not set?", e); } } }
/** * Differences Between HTML and HTML 5 * <p> * The >acronym< tag is not supported in HTML5. Use the >abbr< tag instead. */ @Override public void preConfigure() { super.preConfigure(); try { if (getPage().getBrowser() .getHtmlVersion() == HTMLVersions.HTML5) { setTag("abbr"); } } catch (Exception e) { Acronym.LOG.log(Level.FINE, "Unable to determine whether HTML or HTML5. Document type not set?", e); } } }
/** * Constructs an Acronym * <p> * * @param text */ public Acronym(String text) { this(); setText(text); }
/** * Constructs an Acronym * <p> * * @param text */ public Acronym(String text) { super(ComponentTypes.Acronym.getComponentTag(), ComponentTypes.Acronym); setText(text); }