8000 Merge branch '4.1' · symfony/symfony-docs@3235d06 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3235d06

Browse files
committed
Merge branch '4.1'
* 4.1: Update http_foundation.rst Use matching closing tag
2 parents b89c46e + 7860b54 commit 3235d06

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/http_foundation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ this complexity and defines some methods for the most common tasks::
271271

272272
// Joins an associative array into a string for use in an HTTP header
273273
HeaderUtils::toString(array('foo' => 'abc', 'bar' => true, 'baz' => 'a b c'), ',')
274-
// => 'foo=bar, baz, baz="a b c"'
274+
// => 'foo=abc, bar, baz="a b c"'
275275

276276
// Encodes a string as a quoted string, if necessary
277277
HeaderUtils::quote('foo "bar"')

form/form_collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ will be show next):
353353
var $collectionHolder;
354354
355355
// setup an "add a tag" link
356-
var $addTagButton = $('<button type="button" class="add_tag_link">Add a tag</a>');
356+
var $addTagButton = $('<button type="button" class="add_tag_link">Add a tag</button>');
357357
var $newLinkLi = $('<li></li>').append($addTagButton);
358358
359359
jQuery(document).ready(function() {
@@ -648,7 +648,7 @@ The ``addTagFormDeleteLink()`` function will look something like this:
648648
.. code-block:: javascript
649649
650650
function addTagFormDeleteLink($tagFormLi) {
651-
var $removeFormButton = $('<button type="button">Delete this tag</a>');
651+
var $removeFormButton = $('<button type="button">Delete this tag</button>');
652652
$tagFormLi.append($removeFormButton);
653653
654654
$removeFormButton.on('click', function(e) {

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ And update the template as follows:
212212
213213
<button type="button"
214214
class="add-another-collection-widget"
215-
data-list="#email-fields-list">Add another email</a>
215+
data-list="#email-fields-list">Add another email</button>
216216

217217
{# ... #}
218218
{{ form_end(form) }}

0 commit comments

Comments
 (0)
0