[wp-trac] [WordPress Trac] #45053: Customizer throws JS errors when page contains <area> tag without href attribute

WordPress Trac noreply at wordpress.org
Sat Oct 6 07:56:17 UTC 2018


#45053: Customizer throws JS errors when page contains <area> tag  without href
attribute
--------------------------+------------------------------
 Reporter:  janthiel      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Customize     |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+------------------------------

Comment (by janthiel):

 Hi @dlh Thanks for your feedback. I will create the patch over there at
 Github and open the appropriate PR.

 I did consider fixing {{{prepareLinkPreview}}} but decided to just fix the
 selector to minimize the overall code impact. Even more, selecting Tags
 with no href is kind of memory wasting at all. Maybe making
 {{{prepareLinkPreview}}} more failsafe as well as narrowing down the
 selectors is the way to go?

 What do you think?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45053#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list