C# 클래스 Tidy.Core.ParserImpl

HTML Parser implementation (c) 1998-2000 (W3C) MIT, INRIA, Keio University See Tidy.cs for the copyright notice. Derived from HTML Tidy Release 4 Aug 2000
파일 보기 프로젝트 열기: r1pper/TidyNetPortable

공개 메소드들

메소드 설명
IsJavaScript ( Node node ) : bool
ParseDocument ( Lexer lexer ) : Node
ParseXmlDocument ( Lexer lexer ) : Node
ParseXmlElement ( Lexer lexer, Node element, short mode ) : void
XmlPreserveWhiteSpace ( Node element, TagCollection tt ) : bool

Indicates whether or not whitespace should be preserved for this element. If an xml:space attribute is found, then if the attribute value is preserve, returns true. For any other value, returns false. If an xml:space attribute was not found, then the following element names result in a return value of true: pre, script, style, and xsl:text. Finally, if a TagTable was passed in and the element appears as the "pre" element in the TagTable, then true will be returned. Otherwise, false is returned.

비공개 메소드들

메소드 설명
MoveToHead ( Lexer lexer, Node element, Node node ) : void
ParseTag ( Lexer lexer, Node node, short mode ) : void
ParserImpl ( ) : System
Wsubstr ( string s1, string s2 ) : bool

메소드 상세

IsJavaScript() 공개 정적인 메소드

public static IsJavaScript ( Node node ) : bool
node Node
리턴 bool

ParseDocument() 공개 정적인 메소드

public static ParseDocument ( Lexer lexer ) : Node
lexer Lexer
리턴 Node

ParseXmlDocument() 공개 정적인 메소드

public static ParseXmlDocument ( Lexer lexer ) : Node
lexer Lexer
리턴 Node

ParseXmlElement() 공개 정적인 메소드

public static ParseXmlElement ( Lexer lexer, Node element, short mode ) : void
lexer Lexer
element Node
mode short
리턴 void

XmlPreserveWhiteSpace() 공개 정적인 메소드

Indicates whether or not whitespace should be preserved for this element. If an xml:space attribute is found, then if the attribute value is preserve, returns true. For any other value, returns false. If an xml:space attribute was not found, then the following element names result in a return value of true: pre, script, style, and xsl:text. Finally, if a TagTable was passed in and the element appears as the "pre" element in the TagTable, then true will be returned. Otherwise, false is returned.
public static XmlPreserveWhiteSpace ( Node element, TagCollection tt ) : bool
element Node /// The Node to test to see if whitespace should be /// preserved. ///
tt TagCollection /// The TagTable to test for the getNodePre() /// function. This may be null, in which case this test /// is bypassed. ///
리턴 bool