Overview

Namespaces

  • Alvine
    • Markup
      • Html
        • Constraint
        • Element
          • Html
          • Svg
        • Node
        • Operation
        • Tokenizer
          • State
          • Token
            • Util
        • TreeConstructor
          • InsertionMode

Classes

  • AfterAttributeName
  • AfterAttributeValueQuoted
  • AfterDoctypeName
  • AfterDoctypePublicIdentifier
  • AfterDoctypePublicKeyword
  • AfterDoctypeSystemIdentifier
  • AfterDoctypeSystemKeyword
  • AttributeName
  • AttributeValueDoubleQuoted
  • AttributeValueQuoted
  • AttributeValueSingleQuoted
  • AttributeValueUnquoted
  • BeforeAttributeName
  • BeforeAttributeValue
  • BeforeDoctypeName
  • BeforeDoctypePublicIdentifier
  • BeforeDoctypeSystemIdentifier
  • BetweenDoctypePublicAndSystemIdentifiers
  • BogusComment
  • BogusDoctype
  • CDataSection
  • CharacterReferenceInAttributeValue
  • CharacterReferenceInData
  • CharacterReferenceInRcData
  • Comment
  • CommentEnd
  • CommentEndBang
  • CommentEndDash
  • CommentStart
  • CommentStartDash
  • Data
  • DataTextEndTagName
  • Doctype
  • DoctypeName
  • DoctypePublicIdentifierDoubleQuoted
  • DoctypePublicIdentifierQuoted
  • DoctypePublicIdentifierSingleQuoted
  • DoctypeSystemIdentifierDoubleQuoted
  • DoctypeSystemIdentifierQuoted
  • DoctypeSystemIdentifierSingleQuoted
  • EndTagOpen
  • MarkupDeclarationOpen
  • Plaintext
  • RawText
  • RawTextEndTagName
  • RawTextEndTagOpen
  • RawTextLessThanSign
  • RcData
  • RcDataEndTagName
  • RcDataEndTagOpen
  • RcDataLessThanSign
  • ScriptData
  • ScriptDataDoubleEscaped
  • ScriptDataDoubleEscapedDash
  • ScriptDataDoubleEscapedDashDash
  • ScriptDataDoubleEscapedLessThanSign
  • ScriptDataDoubleEscapeEnd
  • ScriptDataDoubleEscapeStart
  • ScriptDataEndTagName
  • ScriptDataEndTagOpen
  • ScriptDataEscaped
  • ScriptDataEscapedDash
  • ScriptDataEscapedDashDash
  • ScriptDataEscapedEndTagName
  • ScriptDataEscapedEndTagOpen
  • ScriptDataEscapedLessThanSign
  • ScriptDataEscapeStart
  • ScriptDataEscapeStartDash
  • ScriptDataLessThanSign
  • SelfClosingStartTag
  • TagName
  • TagOpen
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class AttributeName

AttributeName

Diese Methode bildet den Status 8.2.4.35 Attribute name state der HTML-Spezifikation ab.

Alvine\Core\Alvine
Extended by Alvine\Markup\Html\Tokenizer\State
Extended by Alvine\Markup\Html\Tokenizer\State\AttributeName
Namespace: Alvine\Markup\Html\Tokenizer\State
Package: Alvine\Markup\Html
Category: Alvine
License: Alvine Nutzungslizenz
Author: schukai GmbH info@schukai.de
Version: $Revision:$
Since: 20150302
Link: Consume the next input character: "tab" (U+0009) "LF" (U+000A) "FF" (U+000C) U+0020 SPACE Switch to the after attribute name state. "/" (U+002F) Switch to the self-closing start tag state. "=" (U+003D) Switch to the before attribute value state. ">" (U+003E) Switch to the data state. Emit the current tag token. Uppercase ASCII letter Append the lowercase version of the current input character (add 0x0020 to the character's code point) to the current attribute's name. U+0000 NULL Parse error. Append a U+FFFD REPLACEMENT CHARACTER character to the current attribute's name. U+0022 QUOTATION MARK (") "'" (U+0027) "<" (U+003C) Parse error. Treat it as per the "anything else" entry below. EOF Parse error. Switch to the data state. Reconsume the EOF character. Anything else Append the current input character to the current attribute's name. When the user agent leaves the attribute name state (and before emitting the tag token, if appropriate), the complete attribute's name must be compared to the other attributes on the same token; if there is already an attribute on the token with the exact same name, then this is a parse error and the new attribute must be removed from the token. If an attribute is so removed from a token, it, along with the value that gets associated with it, if any, are never subsequently used by the parser, and are therefore effectively discarded. Removing the attribute in this way does not change its status as the "current attribute" for the purposes of the tokenizer, however.
Link: alvine.io
Located at tokenizer/state/AttributeName.class.php
Methods summary
public
# __construct( Alvine\Markup\Html\Tokenizer $tokenizer, Alvine\Markup\Html\Tokenizer\Token\Tag $currentToken )

Neues Objekt

Neues Objekt

Parameters

$tokenizer
Tokenizer
$currentToken
CurrentTag

Overrides

Alvine\Markup\Html\Tokenizer\State::__construct()
public Alvine\Markup\Html\Tokenizer\AttributeName
# parse( )

parse

parse

Diese Methode bildet den Status 8.2.4.35 Attribute name state der HTML-Spezifikation ab.

Returns

Alvine\Markup\Html\Tokenizer\AttributeName

Link

http://www.w3.org/TR/html5/syntax.html
Properties summary
protected Alvine\Markup\Html\Tokenizer\Token\Tag $currentToken
#
Properties inherited from Alvine\Markup\Html\Tokenizer\State
$tokenizer
alvine.markup.html API-Dokumentation 1.2.0 | © schukai GmbH | Impressum