Closed Bug 976421 Opened 12 years ago Closed 12 years ago

Code highlights should work for <img> tags

Categories

(Webmaker Graveyard :: Thimble, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: brett, Assigned: michiel)

Details

Attachments

(1 file)

Hi, playing with the new code highlighting, I expected the image in this page: https://etherworks.makes.org/thimble/highlights/remix Would be highlighted in the editor when I mouseovered in the preview window. The actual result is that only content within tags that are closed, ie things inside <p>this</p> will highlight, but <img> tags won't, nor will text that isn't inside <p> tags. Any thoughts? This likely isn't behaviour a user expects.
interesting. browser console reports "Uncaught TypeError: Cannot read property 'end' of undefined " occuring inside the live preview, I'll have a look at why that is.
gotcha. <img ....> has no closetag; the code was looking for </img>, which doesn't exist, and the highlighter panicked.
simple enough fix
Attachment #8382336 - Flags: review?(ali)
Attachment #8382336 - Flags: review?(ali) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: