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
Selected title ‒both through titleSelector and from data-menu-title‒ is considered plain text, but it's used as HTML (create()), leading to unexpected results.
Looking at create() code, I see its last argument, content, being used as HTML (the innerHTML line), while all create() calls seem to feed plain text. If this impression is right, then a quick fix might be replacing innerHTML with an append() call.
OTOH, I see in the useTextContentForMissingTitles code path some HTML markup escaping code: if refactored, that might be use to prepare content on the calling create() side).
The text was updated successfully, but these errors were encountered:
Selected title ‒both through
titleSelector
and fromdata-menu-title
‒ is considered plain text, but it's used as HTML (create()
), leading to unexpected results.Demo: https://codepen.io/altblue/pen/BaPrXbv
Looking at
create()
code, I see its last argument,content
, being used as HTML (theinnerHTML
line), while allcreate()
calls seem to feed plain text. If this impression is right, then a quick fix might be replacinginnerHTML
with anappend()
call.OTOH, I see in the
useTextContentForMissingTitles
code path some HTML markup escaping code: if refactored, that might be use to preparecontent
on the callingcreate()
side).The text was updated successfully, but these errors were encountered: