Issue 4542: Quotes Issue With JavaScript Function Calls Inside Inline Event Handlers

Steps to reproduce

  1. Open Firebug
  2. Switch to the HTML panel
  3. Inspect the Say hi button above
  4. Click the value of the onclick attribute to start inline editing
  5. Move the text cursor between the opening bracket and output of getElementById(output')
  6. Enter a single quote (')
    ⇒ The single quote is entered into the input field
  7. Move the text cursor before the H of Hi
  8. Enter a double quote (")
    ⇒ The double quote is entered into the input field
  9. Click the Say hi button above

Expected Result