This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 52986 - Missing attributes in code completion of several tags.
Summary: Missing attributes in code completion of several tags.
Status: CLOSED DUPLICATE of bug 52909
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-05 13:24 UTC by Jiri Kovalsky
Modified: 2009-05-18 10:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
HTML file with broken code completion. (982 bytes, text/html)
2005-01-05 13:25 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2005-01-05 13:24:30 UTC
Development build #200501041900 of NetBeans 4.1
Windows XP, JDK 1.5.0 build #64

Description:
============
Set of attributes available in code completion of
several HTML tags is either out-of-date or
incomplete under certain circumstances. The
following table lists missing items:

 Element     Missing attribute
==================================
   HEAD    |   class, profile
   FORM    |      action
  INPUT    |    name, value
 TEXTAREA  |       cols
   IMG     |        src

Steps to reproduce:
===================
1. Create new sample web project.
2. Save attached test.html file under the project.
3. Open this file in NetBeans editor.
4. Set caret to "<form |" at line 38.
5. Press CTRL+SPACE.
6. There will be no "action" attribute.
Comment 1 Jiri Kovalsky 2005-01-05 13:25:50 UTC
Created attachment 19493 [details]
HTML file with broken code completion.
Comment 2 Jiri Kovalsky 2005-01-11 11:21:09 UTC
Also BODY tag misses background, text, link, vlink and alink attributes.
Comment 3 zikmund 2005-01-11 17:36:54 UTC
Jirko, which line do you mean in step 4? - I can't see any 'form' tag
at line 38, only at line 121. And it seems to me like not a bug, since
each attribute can be used only once.
Comment 4 Jiri Kovalsky 2005-01-12 06:37:25 UTC
Oh I see. That's the reason ! I have to admit it confused me
completely. And what about the BODY tag ?
Comment 5 Marek Fukala 2005-01-12 11:24:02 UTC
I must say I am little bit confused. I tried the CC inside body tag in
the file you provided and the CC content is fully in accordance with
the HTML 4.01 spec (background, text, link, vlink and alink attributes
are offered along with others). 

Can you please confirm that when you write <body | > and invoke CC on
the | position the CC offers these items?:

    * id, class (document-wide identifiers)
    * lang (language information), dir (text direction)
    * title (element title)
    * style (inline style information)
    * bgcolor (background color)
    * onload, onunload (intrinsic events)
    * onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup (intrinsic events)

The items background, text, link, vlink and alink should be offered as
well, even if they are deprecated. It may have something to do that
these elements are generated from different DTD and you have specified
more DTDs in the DOCTYPE element. In particullar
"http://www.w3.org/TR/html4/loose.dtd".

Can you please try to remove the text above and check the CC again? Or
just create a new HTML from template and check it.

Thanks in advance
Comment 6 Jiri Kovalsky 2005-01-12 11:35:27 UTC
Oh yes, that's it ! The only remaining BODY tag problem is actually a
dup of #52909. My cursor was always just before > char. I am really
sorry for wasting so much of your time. I am resolving this issue
accordingly. Please forgive me. :-\

*** This issue has been marked as a duplicate of 52909 ***
Comment 7 Jiri Kovalsky 2005-01-12 11:36:06 UTC
Verifying as duplicate issue.
Comment 8 Marek Fukala 2005-01-12 13:38:29 UTC
never mind - thanks anyway. I will integrate the fix for 52909 today
evening.