Handbook
Glossary
(before-attribute-value-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
sequences
;
IN:
html5
:
(before-attribute-value-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
"\t\n\f "
member?
]
[
drop
before-attribute-name-state
]
}
{
[
dup
34
=
]
[
drop
attribute-value-double-quoted-state
]
}
{
[
dup
39
=
]
[
drop
attribute-value-single-quoted-state
]
}
{
[
dup
62
=
]
[
drop
missing-attribute-value
]
}
[
(attribute-value-unquoted-state)
]
}
cond
;