You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Invoking the default docsSoap() function on Node 7 with jsdom and jsdom-global, with a string like <span style="font-weight:700">bold text</span><span style="font-style:italic">some italic text</span> appears to get returned as-is without transformation.
Expected behavior
I'd expect it to return <strong>some bold text</strong><i>some italic text</i> or <b>some bold text</b><i>some italic text</i>.
@aem I suspected this might be a Runkit or Node specific issue, but I experience the same on CodePen, in the browser. Paste at https://codepen.io/Krinkle/pen/vpLMaB
Ah, this is my fault, the examples aren’t up to date. There was an issue in the past that this was being run on non-GDocs content and had unexpected effects so the library checks for a specific HTML docs GUID attribute, and if the attribute isn’t present it just returns the same markup, which is what you’re seeing. I can update the examples to work properly, but the library itself works as expected
Steps to reproduce
Invoking the default
docsSoap()
function on Node 7 with jsdom and jsdom-global, with a string like<span style="font-weight:700">bold text</span><span style="font-style:italic">some italic text</span>
appears to get returned as-is without transformation.Expected behavior
I'd expect it to return
<strong>some bold text</strong><i>some italic text</i>
or<b>some bold text</b><i>some italic text</i>
.Code example or screenshot if applicable
Exact example from readme, at https://runkit.com/krinkle/5a383fead05daa0011f5ac4d.
More simplified, at https://runkit.com/embed/c1tdmaet1778
@aem I suspected this might be a Runkit or Node specific issue, but I experience the same on CodePen, in the browser. Paste at https://codepen.io/Krinkle/pen/vpLMaB
The text was updated successfully, but these errors were encountered: