diff options
author | Zachary J. Rollyson <me@zjr.io> | 2020-10-10 11:23:07 -0400 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-10-10 19:13:55 +0200 |
commit | 3bcb5452aa91e527d04cbfc33f81395618db4959 (patch) | |
tree | 7c30da0c182d624ea49037765603816eb27c643e /tests | |
parent | 1f0e53a44d1729cf3ce4ff397c7fd56e3d28fb6a (diff) |
Add HTML syntax test sample
Diffstat (limited to 'tests')
-rw-r--r-- | tests/syntax-tests/highlighted/HTML/test.html | 115 | ||||
-rw-r--r-- | tests/syntax-tests/source/HTML/test.html | 115 |
2 files changed, 230 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/HTML/test.html b/tests/syntax-tests/highlighted/HTML/test.html new file mode 100644 index 00000000..3df49d03 --- /dev/null +++ b/tests/syntax-tests/highlighted/HTML/test.html @@ -0,0 +1,115 @@ +[38;2;255;255;255m<![0m[38;2;249;38;114mDOCTYPE[0m[38;2;248;248;242m [0m[38;2;190;132;255mhtml[0m[38;2;248;248;242m [0m[38;2;249;38;114mSYSTEM[0m[38;2;248;248;242m [0m[38;2;255;255;255m"[0m[38;2;230;219;116mabout:legacy-compat[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m +[38;2;255;255;255m<[0m[38;2;249;38;114mhtml[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;124;120;101m<!--[0m[38;2;124;120;101m Behold my erudite commentary [0m[38;2;124;120;101m-->[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mhead[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtitle[0m[38;2;255;255;255m>[0m[38;2;248;248;242mBat Syntax Test[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtitle[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mmeta[0m[38;2;166;226;46m [0m[38;2;166;226;46mcharset[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mutf-8[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[3;38;2;102;217;239mconst[0m[38;2;166;226;46m [0m[38;2;255;255;255mx[0m[38;2;166;226;46m [0m[38;2;249;38;114m=[0m[38;2;166;226;46m [0m[38;2;230;219;116m'[0m[38;2;230;219;116mworld[0m[38;2;230;219;116m'[0m[38;2;166;226;46m;[0m +[38;2;166;226;46m [0m[3;38;2;102;217;239mfunction[0m[38;2;166;226;46m [0m[38;2;166;226;46mlogGreeting[0m[38;2;255;255;255m([0m[38;2;255;255;255m)[0m[38;2;166;226;46m [0m[38;2;166;226;46m{[0m +[38;2;166;226;46m [0m[3;38;2;166;226;46mconsole[0m[38;2;255;255;255m.[0m[38;2;102;217;239mlog[0m[38;2;255;255;255m([0m[38;2;249;38;114m`[0m[38;2;230;219;116mH[0m[38;2;230;219;116me[0m[38;2;230;219;116ml[0m[38;2;230;219;116ml[0m[38;2;230;219;116mo[0m[38;2;230;219;116m,[0m[38;2;230;219;116m [0m[38;2;249;38;114m${[0m[38;2;255;255;255mx[0m[38;2;249;38;114m}[0m[38;2;249;38;114m`[0m[38;2;255;255;255m)[0m[38;2;166;226;46m;[0m +[38;2;166;226;46m [0m[38;2;166;226;46m}[0m +[38;2;166;226;46m [0m[38;2;255;255;255m</[0m[3;38;2;249;38;114mscript[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mhead[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mbody[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m[38;2;248;248;242mHere find some simple tags[0m[38;2;255;255;255m</[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mbr[0m[38;2;166;226;46m [0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mp[0m[38;2;166;226;46m [0m[38;2;166;226;46mcenter[0m[38;2;166;226;46m [0m[38;2;166;226;46mstyle[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[3;38;2;102;217;239mcolor[0m[38;2;255;255;255m:[0m[38;2;166;226;46m [0m[38;2;102;217;239mrebeccapurple[0m[38;2;255;255;255m;[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m Lorem [0m[38;2;255;255;255m<[0m[38;2;249;38;114mstrong[0m[38;2;255;255;255m>[0m[38;2;248;248;242mipsum[0m[38;2;255;255;255m</[0m[38;2;249;38;114mstrong[0m[38;2;255;255;255m>[0m[38;2;248;248;242m dolor sit amet consectetur adipisicing[0m +[38;2;248;248;242m elit. A quo, autem quaerat explicabo impedit mollitia amet molestiae[0m +[38;2;248;248;242m nulla cum architecto ducimus itaque sit blanditiis quasi animi optio ab[0m +[38;2;248;248;242m facilis nihil?[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mp[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mp[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m Here are some escaped characters: [0m[38;2;190;132;255m&[0m[38;2;190;132;255mamp[0m[38;2;190;132;255m;[0m[38;2;248;248;242m (ampersand), [0m[38;2;190;132;255m&[0m[38;2;190;132;255magrave[0m[38;2;190;132;255m;[0m[38;2;248;248;242m (a with grave), [0m[38;2;190;132;255m&#[0m[38;2;190;132;255m8470[0m[38;2;190;132;255m;[0m[38;2;248;248;242m (numero sign).[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mp[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m[38;2;248;248;242mThis is a form that demonstrates loose attribute formatting[0m[38;2;255;255;255m</[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mform[0m[38;2;248;248;242m [0m[38;2;166;226;46maction[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mPOST[0m[38;2;255;255;255m"[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114minput[0m +[38;2;248;248;242m [0m[38;2;166;226;46mdisabled[0m +[38;2;248;248;242m [0m[38;2;166;226;46mtype[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mtext[0m[38;2;255;255;255m"[0m +[38;2;248;248;242m [0m[38;2;166;226;46mname[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mtext input[0m[38;2;255;255;255m"[0m +[38;2;248;248;242m [0m[38;2;166;226;46mid[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116mspecificTextInput[0m[38;2;255;255;255m"[0m +[38;2;248;248;242m [0m[38;2;166;226;46mvalue[0m[38;2;166;226;46m=[0m[38;2;255;255;255m"[0m[38;2;230;219;116myes[0m[38;2;255;255;255m"[0m +[38;2;248;248;242m [0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mform[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m[38;2;248;248;242mA table with normal closing tags[0m[38;2;255;255;255m</[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtable[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcaption[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m Pet Features[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mcaption[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcolgroup[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcol[0m[38;2;248;248;242m [0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcol[0m[38;2;248;248;242m [0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcol[0m[38;2;248;248;242m [0m[38;2;255;255;255m/>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mcolgroup[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mthead[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m[38;2;248;248;242mFeature[0m[38;2;255;255;255m</[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m[38;2;248;248;242mCat[0m[38;2;255;255;255m</[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m[38;2;248;248;242mDog[0m[38;2;255;255;255m</[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mthead[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtbody[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mTail[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mEyes[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mEars[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mBarking[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mLitter Box[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtbody[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtable[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m[38;2;248;248;242mA table without closing tags[0m[38;2;255;255;255m</[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtable[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcaption[0m[38;2;255;255;255m>[0m[38;2;248;248;242mPet Features[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mcolgroup[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<[0m[38;2;249;38;114mcol[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<[0m[38;2;249;38;114mcol[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<[0m[38;2;249;38;114mcol[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mthead[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m[38;2;248;248;242mFeature [0m[38;2;255;255;255m<[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m[38;2;248;248;242mCat [0m[38;2;255;255;255m<[0m[38;2;249;38;114mth[0m[38;2;255;255;255m>[0m[38;2;248;248;242mDog[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtbody[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mTail [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔ [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mEyes [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔ [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mEars [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔ [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mBarking [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtr[0m[38;2;255;255;255m>[0m[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242mLitter Box [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m[38;2;248;248;242m✔ [0m[38;2;255;255;255m<[0m[38;2;249;38;114mtd[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtbody[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mtable[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m[38;2;248;248;242mA math section with CDATA[0m[38;2;255;255;255m</[0m[38;2;249;38;114mh1[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mp[0m[38;2;255;255;255m>[0m[38;2;248;248;242mYou can add a string to a number, but this stringifies the number:[0m[38;2;255;255;255m</[0m[38;2;249;38;114mp[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mmath[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mms[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<![[0m[38;2;249;38;114mCDATA[0m[38;2;255;255;255m[[0m[38;2;230;219;116ma / b[0m[38;2;255;255;255m]]>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mms[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mmo[0m[38;2;255;255;255m>[0m[38;2;248;248;242m-[0m[38;2;255;255;255m</[0m[38;2;249;38;114mmo[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mmn[0m[38;2;255;255;255m>[0m[38;2;248;248;242m7[0m[38;2;255;255;255m</[0m[38;2;249;38;114mmn[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mmo[0m[38;2;255;255;255m>[0m[38;2;248;248;242m=[0m[38;2;255;255;255m</[0m[38;2;249;38;114mmo[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m<[0m[38;2;249;38;114mms[0m[38;2;255;255;255m>[0m[38;2;255;255;255m<![[0m[38;2;249;38;114mCDATA[0m[38;2;255;255;255m[[0m[38;2;230;219;116ma / b - 7[0m[38;2;255;255;255m]]>[0m[38;2;255;255;255m</[0m[38;2;249;38;114mms[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mmath[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mdiv[0m[38;2;255;255;255m>[0m +[38;2;248;248;242m [0m[38;2;255;255;255m</[0m[38;2;249;38;114mbody[0m[38;2;255;255;255m>[0m +[38;2;255;255;255m</[0m[38;2;249;38;114mhtml[0m[38;2;255;255;255m>[0m diff --git a/tests/syntax-tests/source/HTML/test.html b/tests/syntax-tests/source/HTML/test.html new file mode 100644 index 00000000..ccddb797 --- /dev/null +++ b/tests/syntax-tests/source/HTML/test.html @@ -0,0 +1,115 @@ +<!DOCTYPE html SYSTEM "about:legacy-compat"> +<html> + <!-- Behold my erudite commentary --> + <head> + <title>Bat Syntax Test</title> + <meta charset="utf-8"> + <script> + const x = 'world'; + function logGreeting() { + console.log(`Hello, ${x}`); + } + </script> + </head> + <body> + <div> + <h1>Here find some simple tags</h1> + <br /> + <p center style="color: rebeccapurple;"> + Lorem <strong>ipsum</strong> dolor sit amet consectetur adipisicing + elit. A quo, autem quaerat explicabo impedit mollitia amet molestiae + nulla cum architecto ducimus itaque sit blanditiis quasi animi optio ab + facilis nihil? + </p> + <p> + Here are some escaped characters: & (ampersand), à (a with grave), № (numero sign). + </p> + </div> + <div> + <h1>This is a form that demonstrates loose attribute formatting</h1> + <form action="POST"> + <input + disabled + type="text" + name="text input" + id="specificTextInput" + value="yes" + /> + </form> + </div> + <div> + <h1>A table with normal closing tags</h1> + <table> + <caption> + Pet Features + </caption> + <colgroup> + <col /> + <col /> + <col /> + </colgroup> + <thead> + <tr> + <th>Feature</th> + <th>Cat</th> + <th>Dog</th> + </tr> + </thead> + <tbody> + <tr> + <td>Tail</td> + <td>✔</td> + <td>✔</td> + </tr> + <tr> + <td>Eyes</td> + <td>✔</td> + <td>✔</td> + </tr> + <tr> + <td>Ears</td> + <td>✔</td> + <td>✔</td> + </tr> + <tr> + <td>Barking</td> + <td></td> + <td>✔</td> + </tr> + <tr> + <td>Litter Box</td> + <td>✔</td> + <td></td> + </tr> + </tbody> + </table> + </div> + <div> + <h1>A table without closing tags</h1> + <table> + <caption>Pet Features + <colgroup><col><col><col> + <thead> + <tr> <th>Feature <th>Cat <th>Dog + <tbody> + <tr> <td>Tail <td>✔ <td>✔ + <tr> <td>Eyes <td>✔ <td>✔ + <tr> <td>Ears <td>✔ <td>✔ + <tr> <td>Barking <td> <td>✔ + <tr> <td>Litter Box <td>✔ <td> + </tbody> + </table> + </div> + <div> + <h1>A math section with CDATA</h1> + <p>You can add a string to a number, but this stringifies the number:</p> + <math> + <ms><![CDATA[a / b]]></ms> + <mo>-</mo> + <mn>7</mn> + <mo>=</mo> + <ms><![CDATA[a / b - 7]]></ms> + </math> + </div> + </body> +</html> |