History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17566
Type: Bug Bug
Status: Open Open
Assignee: Alexey Pegov
Reporter: Stephen Friedrich
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Dangerous warning "XML tag has empty body"

Created: 28 Mar 08 01:47   Updated: 28 Mar 08 10:34
Component/s: Code Analysis. Inspection, HTML.Editing

Build: 7,757


 Description  « Hide
Idea warns that the "blue" div has an empty body and offers a quick"fix" to collapse it:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <style type="text/css">
            .green {
                height: 40px;
                background-color: green;
            }
            .blue {
                height: 30px;
                background-color: blue;
            }
            .red {
                height: 70px;
                background-color: red;
            }
        </style>
    </head>
    <body>
        <div class="green">Green</div>
        <div class="blue"></div>
        <div class="red">Red</div>
    </body>
</html>

However after the "fix" the div is no longer visible at all! (At least on Firefox 2 - have not tried other browsers.

I was trusting Idea here and did apply the quickfix without immediately checking the result.
Two days later I had a nice debug session trying to find out wtf broke some of my pages.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.