Report an issue
Class

CKEDITOR.htmlParser.fragment

class

A lightweight representation of an HTML DOM structure.

Filtering

Properties

  • children : Array

    The nodes contained in the root of this fragment.

    var fragment = CKEDITOR.htmlParser.fragment.fromHtml( '<b>Sample</b> Text' );
    alert( fragment.children.length ); // 2
    

    Defaults to []

  • parent : Object

    Get the fragment parent. Should always be null.

    Defaults to null

  • readonly

    type : Number

    The node type. This is a constant value set to CKEDITOR.NODE_DOCUMENT_FRAGMENT.

    Defaults to CKEDITOR.NODE_DOCUMENT_FRAGMENT

  • private

    _ : Object

    Defaults to {isBlockLike: true, hasInlineStarted: false}

Methods