Fix closing and self-closing tags in templates

Void tags (e.g. <img>) couldn't have a closing tag (e.g. </img> is invalid). Non-void tags (e.g. <div>) couldn't be self closing (e.g. <div/> is invalid) and must be closed explicitly (e.g. with </div>). This CL fixes the tags which also prepares the templates for stricthtml which enforces it.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168829028
This commit is contained in:
jakubvrana 2017-09-15 06:46:59 -07:00 committed by jianglai
parent ccb0bf5af0
commit 04a61794e0
21 changed files with 31 additions and 31 deletions

View file

@ -15,7 +15,7 @@
{namespace registry.soy.api autoescape="strict"} {namespace registry.soy.api autoescape="strict"}
/** Domain check fee request for one domain. */ /** Domain check fee request for one domain. */
{template .domaincheckfee} {template .domaincheckfee stricthtml="false"}
{@param domainName: string} {@param domainName: string}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">

View file

@ -16,7 +16,7 @@
/** /**
* Create contact * Create contact
*/ */
{template .contactcreate} {template .contactcreate stricthtml="false"}
{@param? id: string} {@param? id: string}
{@param? name: string} {@param? name: string}
{@param? org: string} {@param? org: string}

View file

@ -17,7 +17,7 @@
/** /**
* Create anchor tenant domain * Create anchor tenant domain
*/ */
{template .createanchortenant} {template .createanchortenant stricthtml="false"}
{@param domainName: string} {@param domainName: string}
{@param contactId: string} {@param contactId: string}
{@param password: string} {@param password: string}

View file

@ -17,7 +17,7 @@
/** /**
* Delete domain request * Delete domain request
*/ */
{template .deletedomain} {template .deletedomain stricthtml="false"}
{@param domainName: string} {@param domainName: string}
{@param reason: string} {@param reason: string}
{@param requestedByRegistrar: any} {@param requestedByRegistrar: any}

View file

@ -17,7 +17,7 @@
/** /**
* Delete host request * Delete host request
*/ */
{template .deletehost} {template .deletehost stricthtml="false"}
{@param hostName: string} {@param hostName: string}
{@param reason: string} {@param reason: string}
{@param requestedByRegistrar: any} {@param requestedByRegistrar: any}

View file

@ -17,7 +17,7 @@
/** /**
* Domain allocate request. * Domain allocate request.
*/ */
{template .create} {template .create stricthtml="false"}
{@param name: string} {@param name: string}
{@param period: int} {@param period: int}
{@param registrant: string} {@param registrant: string}

View file

@ -16,7 +16,7 @@
/** /**
* Domain application info request * Domain application info request
*/ */
{template .domainapplicationinfo} {template .domainapplicationinfo stricthtml="false"}
{@param domainName: string} {@param domainName: string}
{@param id: string} {@param id: string}
{@param phase: string} {@param phase: string}

View file

@ -17,7 +17,7 @@
/** /**
* Domain check request * Domain check request
*/ */
{template .domaincheck} {template .domaincheck stricthtml="false"}
{@param domainNames: list<string>} {@param domainNames: list<string>}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">

View file

@ -17,7 +17,7 @@
/** /**
* Domain check claims request * Domain check claims request
*/ */
{template .domaincheckclaims} {template .domaincheckclaims stricthtml="false"}
{@param domainNames: list<string>} {@param domainNames: list<string>}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">

View file

@ -17,7 +17,7 @@
/** /**
* Domain check fee request * Domain check fee request
*/ */
{template .domaincheckfee} {template .domaincheckfee stricthtml="false"}
{@param domainNames: list<string>} {@param domainNames: list<string>}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">

View file

@ -16,7 +16,7 @@
/** /**
* Create domain * Create domain
*/ */
{template .domaincreate} {template .domaincreate stricthtml="false"}
{@param domain: string} {@param domain: string}
{@param? period: string} {@param? period: string}
{@param nameservers: list<string>} {@param nameservers: list<string>}

View file

@ -16,7 +16,7 @@
/** /**
* Update domain * Update domain
*/ */
{template .domainupdate} {template .domainupdate stricthtml="false"}
{@param domain: string} {@param domain: string}
{@param add: bool} {@param add: bool}
{@param addNameservers: list<string>} {@param addNameservers: list<string>}

View file

@ -16,7 +16,7 @@
/** /**
* Create host * Create host
*/ */
{template .hostcreate} {template .hostcreate stricthtml="false"}
{@param hostname: string} {@param hostname: string}
{@param? ipv4addresses: list<string>} {@param? ipv4addresses: list<string>}
{@param? ipv6addresses: list<string>} {@param? ipv6addresses: list<string>}

View file

@ -17,7 +17,7 @@
/** /**
* Request to remove IP addresses. * Request to remove IP addresses.
*/ */
{template .remove_ip_address} {template .remove_ip_address stricthtml="false"}
{@param name: string} {@param name: string}
{@param ipAddresses: list<map<string, string>>} {@param ipAddresses: list<map<string, string>>}
{@param requestedByRegistrar: string} {@param requestedByRegistrar: string}

View file

@ -17,7 +17,7 @@
/** /**
* Uniform Rapid Suspension * Uniform Rapid Suspension
*/ */
{template .uniformrapidsuspension} {template .uniformrapidsuspension stricthtml="false"}
{@param domainName: string} {@param domainName: string}
{@param hostsToAdd: list<string>} {@param hostsToAdd: list<string>}
{@param hostsToRemove: list<string>} {@param hostsToRemove: list<string>}

View file

@ -17,7 +17,7 @@
/** /**
* Update server locks * Update server locks
*/ */
{template .updateserverlocks} {template .updateserverlocks stricthtml="false"}
{@param domainName: string} {@param domainName: string}
{@param locksToApply: list<string>} {@param locksToApply: list<string>}
{@param locksToRemove: list<string>} {@param locksToRemove: list<string>}

View file

@ -103,7 +103,7 @@
{param namePrefix: 'contact:postalInfo[0].contact:' /} {param namePrefix: 'contact:postalInfo[0].contact:' /}
{/call} {/call}
{/if} {/if}
<table id="domain-contact-postalInfos-footer"/> <table id="domain-contact-postalInfos-footer"></table>
</div> </div>
</td> </td>
</tr> </tr>

View file

@ -22,7 +22,7 @@
* @param item * @param item
* @param clTrid * @param clTrid
*/ */
{template .create} {template .create stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<create> <create>
@ -63,7 +63,7 @@
* @param item * @param item
* @param clTrid * @param clTrid
*/ */
{template .update} {template .update stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<update> <update>
@ -104,7 +104,7 @@
* @param id * @param id
* @param clTrid * @param clTrid
*/ */
{template .info} {template .info stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<info> <info>

View file

@ -21,7 +21,7 @@
* @param item * @param item
* @param clTrid * @param clTrid
*/ */
{template .create} {template .create stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<create> <create>
@ -61,7 +61,7 @@
* @param id * @param id
* @param clTrid * @param clTrid
*/ */
{template .info} {template .info stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<info> <info>
@ -84,7 +84,7 @@
* @param? addContacts list of contact to add. * @param? addContacts list of contact to add.
* @param? remContacts list of contact to remove. * @param? remContacts list of contact to remove.
*/ */
{template .update} {template .update stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<update> <update>
@ -148,7 +148,7 @@
* @param item * @param item
* @param clTrid * @param clTrid
*/ */
{template .createSunrush} {template .createSunrush stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<create> <create>
@ -192,7 +192,7 @@
* @param applicationID * @param applicationID
* @param clTrid * @param clTrid
*/ */
{template .infoSunrush} {template .infoSunrush stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<info> <info>
@ -219,7 +219,7 @@
* @param item * @param item
* @param clTrid * @param clTrid
*/ */
{template .updateSunrush} {template .updateSunrush stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<update> <update>

View file

@ -21,7 +21,7 @@
* @param pw * @param pw
* @param clTrid * @param clTrid
*/ */
{template .login} {template .login stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<login> <login>
@ -47,7 +47,7 @@
* Logout request. * Logout request.
* @param clTrid * @param clTrid
*/ */
{template .logout} {template .logout stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<logout/> <logout/>

View file

@ -20,7 +20,7 @@
* @param item * @param item
* @param clTrid * @param clTrid
*/ */
{template .create} {template .create stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<create> <create>
@ -47,7 +47,7 @@
* @param? addAddrs list of addrs to add. * @param? addAddrs list of addrs to add.
* @param? remAddrs list of addrs to remove. * @param? remAddrs list of addrs to remove.
*/ */
{template .update} {template .update stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<update> <update>
@ -79,7 +79,7 @@
* @param clTrid * @param clTrid
* @param id The hostname (named "id" to preserve component API). * @param id The hostname (named "id" to preserve component API).
*/ */
{template .info} {template .info stricthtml="false"}
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command> <command>
<info> <info>