Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 7a52999

Browse files
Jeff WessonNarretz
Jeff Wesson
authored andcommitted
docs(form): replace obsolete tt element
Removes the [**obsolete** HTML Teletype Text Element `<tt>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tt) and replaces it with [`<code>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code). This adds more semanticity and is part of the [HTML5 specification](http://www.w3.org/TR/html5/text-level-semantics.html#the-code-element). Closes #11570
1 parent e89d682 commit 7a52999

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ng/directive/form.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,11 @@ function FormController(element, attrs, $scope, $animate, $interpolate) {
415415
<form name="myForm" ng-controller="FormController" class="my-form">
416416
userType: <input name="input" ng-model="userType" required>
417417
<span class="error" ng-show="myForm.input.$error.required">Required!</span><br>
418-
<tt>userType = {{userType}}</tt><br>
419-
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br>
420-
<tt>myForm.input.$error = {{myForm.input.$error}}</tt><br>
421-
<tt>myForm.$valid = {{myForm.$valid}}</tt><br>
422-
<tt>myForm.$error.required = {{!!myForm.$error.required}}</tt><br>
418+
<code>userType = {{userType}}</code><br>
419+
<code>myForm.input.$valid = {{myForm.input.$valid}}</code><br>
420+
<code>myForm.input.$error = {{myForm.input.$error}}</code><br>
421+
<code>myForm.$valid = {{myForm.$valid}}</code><br>
422+
<code>myForm.$error.required = {{!!myForm.$error.required}}</code><br>
423423
</form>
424424
</file>
425425
<file name="protractor.js" type="protractor">

0 commit comments

Comments
 (0)