| Summary: | Invalid HTML error with embedded PHP | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Seva Lapsha <seva.lapsha> |
| Component: | PDT | Assignee: | Shalom Gibly <shalom> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P1 | CC: | gadi, ganoro, jeremia, joe.roback, melitonas, piter75 |
| Version: | unspecified | Keywords: | plan |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Seva Lapsha
I have written about smarty support in the newsgroup. It would really be enough for the beginning if you made html editor to ignore the contents of the curly braces in the following example: <a href="{$xxx}"></A> in the PHP files.
This is a little bit off topic but it's actually a similar thing so I decided to write about it here. :)
*** Bug 164169 has been marked as a duplicate of this bug. *** *** Bug 168987 has been marked as a duplicate of this bug. *** fixed. from now on embedded PHP is aggregated into one TextRegionContainer then treated as tag attribute name or value. fixed I still get an wrong warning, if i write something like this <input type="checkbox" name="<?=$name?>" <?=$checked?'checked="checked"':'' ?>></input> This Part: <?=$checked?'checked="checked"':'' ?> is marked with the following warning: "Undefined attribute name (<?=$checked?'checked="checked"':'' ?>)" A file is also marked as warnign if i wrote something like this: <?php if(empty($class)): ?> <div> <?php else: ?> <div class="<?=$class?>"> <?php endif; ?> <form action="post"> <textarea rows="20" cols="40"><?=$text?></textarea><br/> <input type="submit" value="speichern"></input> </form> </div> There is actually no warnign marker, but the file is marked if it has a warning. If i write this: <div class="<?=$class?>"> <form action="post"> <textarea rows="20" cols="40"><?=$text?></textarea><br/> <input type="submit" value="speichern"></input> </form> </div> the warning marker disappears. I reopen it, per Jeremia's request The first part of Jeremia's description is related to a bug that was resolved in WTP 3.0M5 (see duplicate bug #207194). The second part of the bug (which is actually a different bug) occures when we have 2 <div> tags that are generated with a PHP if-else, but only one closing div tag. Thus, we get the warning: "No end tag (</div>)." (visible in the Problems view). fixed in both WTP 2.0.2 and 3.0 Streams, so we will have it on both 1.0.3 and 1.1. fixed in 1.0.3 I get a wrong warning too, if I write something like this <input type="checkbox" name="<?=$name?>" <?=$checked?'checked="checked"':'' ?>></input> I have Zend Studio for Eclipse 6.1.0. How can I update WTP x.x.x or is it the latest in my zend studio version?.. Currently seems that it is problematic again :( seems to have been fixed in nightly fixed |