Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extend-exclude = [
"tasks/coverage/snapshots",
"tasks/prettier_conformance/prettier",
"tasks/prettier_conformance/snapshots",
"tasks/transform_conformance/tests/babel-plugin-transform-react-jsx/test/fixtures/text/escapes/input.jsx",
"tasks/transform_conformance/tests/**/output.js",
"tasks/transform_conformance/overrides",
"tasks/transform_conformance/snapshots",
Expand Down
4 changes: 2 additions & 2 deletions tasks/transform_conformance/snapshots/oxc.snap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commit: 578ac4df

Passed: 143/235
Passed: 148/240

# All Passed:
* babel-plugin-transform-class-static-block
Expand Down Expand Up @@ -336,7 +336,7 @@ rebuilt : SymbolId(2): []
x Output mismatch


# babel-plugin-transform-react-jsx (37/40)
# babel-plugin-transform-react-jsx (42/45)
* refresh/does-not-transform-it-because-it-is-not-used-in-the-AST/input.jsx
x Output mismatch

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Valid escapes
<Foo bar="&Egrave; &euro; &quot;" />;
<Foo bar="&#xC; &#x41;" />;
<Foo bar="&#12; &#65;" />;

// Invalid escapes
<Foo bar="&donkey; &#x110000; &#xFFFFFF; &#xG; &#1114112; &#16777215; &#C;" />;

// Unterminated escapes
<Foo bar="&euro xxx" />;
<Foo bar="&#123 xxx" />;
<Foo bar="&#x123 xxx" />;
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { jsx as _jsx } from "react/jsx-runtime";

// Valid escapes
/* @__PURE__ */ _jsx(Foo, { bar: "È € \"" });
/* @__PURE__ */ _jsx(Foo, { bar: "\f A" });
/* @__PURE__ */ _jsx(Foo, { bar: "\f A" });

// Invalid escapes
/* @__PURE__ */ _jsx(Foo, { bar: "&donkey; &#x110000; &#xFFFFFF; &#xG; &#1114112; &#16777215; &#C;" });

// Unterminated escapes
/* @__PURE__ */ _jsx(Foo, { bar: "&euro xxx" });
/* @__PURE__ */ _jsx(Foo, { bar: "&#123 xxx" });
/* @__PURE__ */ _jsx(Foo, { bar: "&#x123 xxx" });
Original file line number Diff line number Diff line change
@@ -0,0 +1,308 @@
// Valid
<div>
&nbsp;
&iexcl;
&cent;
&pound;
&curren;
&yen;
&brvbar;
&sect;
&uml;
&copy;
</div>;
<div>
&ordf;
&laquo;
&not;
&shy;
&reg;
&macr;
&deg;
&plusmn;
&sup2;
&sup3;
</div>;
<div>
&acute;
&micro;
&para;
&middot;
&cedil;
&sup1;
&ordm;
&raquo;
&frac14;
&frac12;
</div>;
<div>
&frac34;
&iquest;
&Agrave;
&Aacute;
&Acirc;
&Atilde;
&Auml;
&Aring;
&AElig;
&Ccedil;
</div>;
<div>
&Egrave;
&Eacute;
&Ecirc;
&Euml;
&Igrave;
&Iacute;
&Icirc;
&Iuml;
&ETH;
&Ntilde;
</div>;
<div>
&Ograve;
&Oacute;
&Ocirc;
&Otilde;
&Ouml;
&times;
&Oslash;
&Ugrave;
&Uacute;
&Ucirc;
</div>;
<div>
&Uuml;
&Yacute;
&THORN;
&szlig;
&agrave;
&aacute;
&acirc;
&atilde;
&auml;
&aring;
</div>;
<div>
&aelig;
&ccedil;
&egrave;
&eacute;
&ecirc;
&euml;
&igrave;
&iacute;
&icirc;
&iuml;
</div>;
<div>
&eth;
&ntilde;
&ograve;
&oacute;
&ocirc;
&otilde;
&ouml;
&divide;
&oslash;
&ugrave;
</div>;
<div>
&uacute;
&ucirc;
&uuml;
&yacute;
&thorn;
&yuml;
&fnof;
&Alpha;
&Beta;
&Gamma;
</div>;
<div>
&Delta;
&Epsilon;
&Zeta;
&Eta;
&Theta;
&Iota;
&Kappa;
&Lambda;
&Mu;
&Nu;
</div>;
<div>
&Xi;
&Omicron;
&Pi;
&Rho;
&Sigma;
&Tau;
&Upsilon;
&Phi;
&Chi;
&Psi;
</div>;
<div>
&Omega;
&alpha;
&beta;
&gamma;
&delta;
&epsilon;
&zeta;
&eta;
&theta;
&iota;
</div>;
<div>
&kappa;
&lambda;
&mu;
&nu;
&xi;
&omicron;
&pi;
&rho;
&sigmaf;
&sigma;
</div>;
<div>
&tau;
&upsilon;
&phi;
&chi;
&psi;
&omega;
&thetasym;
&upsih;
&piv;
&bull;
</div>;
<div>
&hellip;
&prime;
&Prime;
&oline;
&frasl;
&weierp;
&image;
&real;
&trade;
&alefsym;
</div>;
<div>
&larr;
&uarr;
&rarr;
&darr;
&harr;
&crarr;
&lArr;
&uArr;
&rArr;
&dArr;
</div>;
<div>
&hArr;
&forall;
&part;
&exist;
&empty;
&nabla;
&isin;
&notin;
&ni;
&prod;
</div>;
<div>
&sum;
&minus;
&lowast;
&radic;
&prop;
&infin;
&ang;
&and;
&or;
&cap;
</div>;
<div>
&cup;
&int;
&there4;
&sim;
&cong;
&asymp;
&ne;
&equiv;
&le;
&ge;
</div>;
<div>
&sub;
&sup;
&nsub;
&sube;
&supe;
&oplus;
&otimes;
&perp;
&sdot;
&lceil;
</div>;
<div>
&rceil;
&lfloor;
&rfloor;
&lang;
&rang;
&loz;
&spades;
&clubs;
&hearts;
&diams;
</div>;
<div>
&quot;
&amp;
&lt;
&gt;
&OElig;
&oelig;
&Scaron;
&scaron;
&Yuml;
&circ;
</div>;
<div>
&tilde;
&ensp;
&emsp;
&thinsp;
&zwnj;
&zwj;
&lrm;
&rlm;
&ndash;
&mdash;
</div>;
<div>
&lsquo;
&rsquo;
&sbquo;
&ldquo;
&rdquo;
&bdquo;
&dagger;
&Dagger;
&permil;
&lsaquo;
</div>;
<div>
&rsaquo;
&euro;
</div>;

// Invalid
<div>&donkey;</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { jsx as _jsx } from "react/jsx-runtime";

// Valid
/* @__PURE__ */ _jsx("div", { children: "\xA0 ¡ ¢ £ ¤ ¥ ¦ § ¨ ©" });
/* @__PURE__ */ _jsx("div", { children: "ª « ¬ ­ ® ¯ ° ± ² ³" });
/* @__PURE__ */ _jsx("div", { children: "´ µ ¶ · ¸ ¹ º » ¼ ½" });
/* @__PURE__ */ _jsx("div", { children: "¾ ¿ À Á Â Ã Ä Å Æ Ç" });
/* @__PURE__ */ _jsx("div", { children: "È É Ê Ë Ì Í Î Ï Ð Ñ" });
/* @__PURE__ */ _jsx("div", { children: "Ò Ó Ô Õ Ö × Ø Ù Ú Û" });
/* @__PURE__ */ _jsx("div", { children: "Ü Ý Þ ß à á â ã ä å" });
/* @__PURE__ */ _jsx("div", { children: "æ ç è é ê ë ì í î ï" });
/* @__PURE__ */ _jsx("div", { children: "ð ñ ò ó ô õ ö ÷ ø ù" });
/* @__PURE__ */ _jsx("div", { children: "ú û ü ý þ ÿ ƒ Α Β Γ" });
/* @__PURE__ */ _jsx("div", { children: "Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν" });
/* @__PURE__ */ _jsx("div", { children: "Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ" });
/* @__PURE__ */ _jsx("div", { children: "Ω α β γ δ ε ζ η θ ι" });
/* @__PURE__ */ _jsx("div", { children: "κ λ μ ν ξ ο π ρ ς σ" });
/* @__PURE__ */ _jsx("div", { children: "τ υ φ χ ψ ω ϑ ϒ ϖ •" });
/* @__PURE__ */ _jsx("div", { children: "… ′ ″ ‾ ⁄ ℘ ℑ ℜ ™ ℵ" });
/* @__PURE__ */ _jsx("div", { children: "← ↑ → ↓ ↔ ↵ ⇐ ⇑ ⇒ ⇓" });
/* @__PURE__ */ _jsx("div", { children: "⇔ ∀ ∂ ∃ ∅ ∇ ∈ ∉ ∋ ∏" });
/* @__PURE__ */ _jsx("div", { children: "∑ − ∗ √ ∝ ∞ ∠ ∧ ∨ ∩" });
/* @__PURE__ */ _jsx("div", { children: "∪ ∫ ∴ ∼ ≅ ≈ ≠ ≡ ≤ ≥" });
/* @__PURE__ */ _jsx("div", { children: "⊂ ⊃ ⊄ ⊆ ⊇ ⊕ ⊗ ⊥ ⋅ ⌈" });
/* @__PURE__ */ _jsx("div", { children: "⌉ ⌊ ⌋ 〈 〉 ◊ ♠ ♣ ♥ ♦" });
/* @__PURE__ */ _jsx("div", { children: "\" & < > Œ œ Š š Ÿ ˆ" });
/* @__PURE__ */ _jsx("div", { children: "˜       ‌ ‍ ‎ ‏ – —" });
/* @__PURE__ */ _jsx("div", { children: "‘ ’ ‚ “ ” „ † ‡ ‰ ‹" });
/* @__PURE__ */ _jsx("div", { children: "› €" });

// Invalid
/* @__PURE__ */ _jsx("div", { children: "&donkey;" });
Loading
Loading