com.ephox.editlive.model
Interface ElementInfo


public interface ElementInfo

Provides useful information about elements in the document. Instance available via DocumentManager.getElementInfo(Element).

Since:
7.5

Method Summary
 int getAttributeAsInt(HTML.Attribute attribute)
          Parses a specific attribute as an int.
 String getAttributesAsString()
          Outputs the element attributes as a string just like they will appear in the final HTML
 HTML.Tag getTag()
          The tag for this element
 boolean isScriptTag()
          Determines if this element is a script tag
 boolean isUnknownCustomTag()
          Determines if this element is a custom tag not pre-registered with EditLive!
 

Method Detail

getTag

HTML.Tag getTag()
The tag for this element


isUnknownCustomTag

boolean isUnknownCustomTag()
Determines if this element is a custom tag not pre-registered with EditLive! (renders with a yellow box in the editor)


isScriptTag

boolean isScriptTag()
Determines if this element is a script tag


getAttributesAsString

String getAttributesAsString()
Outputs the element attributes as a string just like they will appear in the final HTML


getAttributeAsInt

int getAttributeAsInt(HTML.Attribute attribute)
Parses a specific attribute as an int.

Returns:
parsed attribute, or -1 if the attribute was not defined on the element

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.