Handbook
Glossary
(attribute-value-single-quoted-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:
accessors
combinators
kernel
;
IN:
html5
:
(attribute-value-single-quoted-state)
( document n/f string ch/f -- document n'/f string )
{
{
[
dup
39
=
]
[
drop
after-attribute-value-quoted-state
]
}
{
[
dup
38
=
]
[
drop
[
\
attribute-value-single-quoted-state
>>return-state
]
2dip
character-reference-state
]
}
{
[
dup
0
=
]
[
drop
unexpected-null-character
65533
reach
push-attribute-value
]
}
{
[
dup
f
=
]
[
eof-in-tag
]
}
[
reach
push-attribute-value
attribute-value-single-quoted-state
]
}
cond
;