public static final class HtmlElementTables.TextContentModel
extends java.lang.Object
Constructor | Description |
---|---|
TextContentModel(byte[] contentModelBitsPerElement) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canContainComment(int elementIndex) |
Whether
<!--...-> parses to a comment when it appears in the
identified element. |
boolean |
canContainEntities(int elementIndex) |
Whether
& parses to an HTML character reference when it
appears in the identified element. |
boolean |
canContainPlainText(int elementIndex) |
Whether parsing can produce an element with the given index that contains
a text node that has human readable text instead of script or style
source code.
|
boolean |
canContainText(int elementIndex) |
Whether parsing can produce an element with the given index that contains
a text node.
|
boolean |
isAllowed(int elementIndex,
HtmlElementTables.TextContentModelBit modelBit) |
True if the given model bit is allowed within the element.
|
boolean |
isRaw(int elementIndex) |
True iff things that look like tags when they appear lexically within
the element do in fact, parse to tags.
|
boolean |
isUnended(int elementIndex) |
True if parsing the element always proceeds to the end of input.
|
public boolean canContainComment(int elementIndex)
<!--...->
parses to a comment when it appears in the
identified element.public boolean canContainEntities(int elementIndex)
&
parses to an HTML character reference when it
appears in the identified element.public boolean canContainText(int elementIndex)
public boolean canContainPlainText(int elementIndex)
public boolean isRaw(int elementIndex)
public boolean isUnended(int elementIndex)
public boolean isAllowed(int elementIndex, HtmlElementTables.TextContentModelBit modelBit)
Copyright © 2019 OWASP. All rights reserved.