ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 SVG closing tag code
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

zerob

194 Posts

Posted - Jan 09 2025 :  16:52:54  Show Profile  Reply
Hi Nigel

Is there a reason for closing svg tags the old, long way?
ImageEn does a:
<ellipse></ellipse>
instead of:
<ellipse />

The long closing is only needed when there are some tags inside of another tag (nesting),
and as ImageEn layers can't contain child layers, this isn't really needed, or is it?

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/ellipse
https://www.w3schools.com/graphics/svg_ellipse.asp

xequte

38754 Posts

Posted - Jan 09 2025 :  17:13:06  Show Profile  Reply
Hi

ImageEn is expecting a title, e.g. <ellipse cx="240" cy="50" rx="220" ry="30" fill="yellow"><title>My ellipse</title></ellipse>, so for convenience we use closing tags even when a title is present.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: