diff --git a/src/lexer.c b/src/lexer.c index 7af1fdb..ef70e13 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -3270,6 +3270,22 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode ) if (!name) { + /* check if attributes are created by ASP markup */ + if (asp) + { + av = TY_(NewAttribute)(doc); + av->asp = asp; + AddAttrToList( &attributes, av ); + } + + /* check if attributes are created by PHP markup */ + if (php) + { + av = TY_(NewAttribute)(doc); + av->php = php; + AddAttrToList( &attributes, av ); + } + /* fix for http://tidy.sf.net/bug/788031 */ lexer->lexsize -= 1; lexer->txtend = lexer->txtstart;