Assembly: EPiServer.Framework (in EPiServer.Framework.dll) Version: 8.0.0
public class ImplicitCDataFragment : TextFragment
Represents an implicit CDATA fragment, such as the text in a <script> or <style> tag.
|GetIdentity||Extracts the identity from the object if it has one.||public, static|
|GetOriginalType||Gets the Type of the current object, ensuring that the eventual type that could be generated by a proxy interceptor is ignored.||public, static|
|NameEquals||Case-insensitive comparison of the attribute name.||public|
|Parse||Parses the fragment from the specified context.||public|
|SetIdentity||Sets the identity into the object if supported||public, static|
|ToPropertyBag(Object)||Create a PropertyBag instance and populates it with its properties The algorith for extracting properties is as follows: 1) Property must a have a getter and setter 2a) Getter must be public OR 2b) The class must be marked either with the DataContractAttribute or EPiServerDataContractAttribute and the property must be marked either with the DataMemberAttribute or EPiServerDataMemberAttribute||public, static|
|ToPropertyBag(Object, IEnumerable(String))||Create a PropertyBag instance and populates it with its properties||public, static|
|ToString||Returns a String that represents this instance.||public|
|ToWriter||Writes the fragment to the given TextWriter.||public|
|FragmentType||Gets or sets the type of the fragment.||public|
|IsEmpty||Gets or sets a value indicating whether this instance is empty.||public|
|Name||Gets or sets the name of the fragment.||public|
|Value||Gets or sets the value of the fragment.||public|
The text in style and script should be parsed "as-is" until we find a closing style/script tag and completely ignore anything else that may appear within the text. This is very similar to how we would treat an explicit CDATA appearing within a style/script tag.
Note that an ImplicitCDataFragment is actually seen as a TextFragment - the HtmlFragmentType will be set to TextFragment. The only difference between a TextFragment and an ImplicitCDataFragment is the actual parsing.