Handbook
Glossary
(attribute-name-state) ( document n/f string ch/f -- document n'/f string )
Vocabulary
html5
Inputs
document
an
object
n/f
an
object
string
an
object
ch/f
an
object
Outputs
document
an
object
n'/f
an
object
string
an
object
Definition
USING:
combinators
kernel
math
sequences
;
IN:
html5
:
(attribute-name-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
"\t\n\f />"
member?
]
[
(after-attribute-name-state)
]
}
{
[
dup
f
=
]
[
(after-attribute-name-state)
]
}
{
[
dup
61
=
]
[
drop
before-attribute-value-state
]
}
{
[
dup
ascii-upper-alpha?
]
[
32
+
reach
push-attribute-name
attribute-name-state
]
}
{
[
dup
0
=
]
[
unexpected-null-character
]
}
{
[
dup
"\"'<"
member?
]
[
unexpected-character-in-attribute-name
reach
push-attribute-name
attribute-name-state
]
}
[
reach
push-attribute-name
attribute-name-state
]
}
cond
;