Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4670

PHP: HTML type=number value attribute of input tag flagged as error when value is php expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 12.0
    • None
    • None

    Description

      The Editor flags the following as an error:

      <input class="button" id="ordinal" type="number" name="ordinal" min="1" value="<?php echo ($myEditor->getOrdinal() ? $myEditor->getOrdinal() : 1); ?>"/>

      The error from mouseover text starts:

      Bad value "   " for attribute "value" on element "input": Expected a minus sign or a digit but saw " " instead.

      The code performs correctly, however.

       

       

       

      Attachments

        1. Screenshot from 2020-08-02 12-50-11.png
          22 kB
          Jack J. Woehr
        2. nb4670-html-hint.png
          41 kB
          Junichi Yamamoto

        Activity

          People

            Unassigned Unassigned
            jwoehr Jack J. Woehr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: