Skip to main content

Original: Unable to Reuse Questions from Tests When Questions Contain CSS or JavaScript Code in the Question Description

Original: Unable to Reuse Questions from Tests When Questions Contain CSS or JavaScript Code in the Question Description

Description

When attempting to reuse questions using the 'Find question' option, tests that contain JavaScript or CSS code within their question descriptions cause the option to be greyed out, preventing selection.

Steps to Replicate

  1. Log into Blackboard Learn as an administrator

  2. Create a course in the Original Course View

  3. In the left panel, navigate to Tests, Surveys, and Pools > Test

  4. Build a test named 'Test With CSS Code' and access it

  5. Select Create Question and choose any question type, such as 'Multiple Choice'

  6. In the 'Question Text' field, insert a question and use the Insert/Edit code sample option

  7. Insert CSS code within the <style> tag, including components like width, height, padding, border, and box-sizing (an example will be provided below).

  8. Save the question and submit

  9. Repeat step 4, but this time name the test 'Test With JS Code'

  10. In the 'Question Text' field, insert JavaScript code within the <script> tag (an example will be provided below).

  11. Save the question and submit

  12. Create another test named 'Test General' without adding any questions

  13. Use the 'Reuse question' feature and select 'Find question'

  14. Attempt to select questions from the 'Test With CSS Code' and 'Test With JS Code' tests

Example of CSS code:

<style>
​.div1 {
​ width: 300px;
​ height: 100px;
​ border: 1px solid blue;
​ box-sizing: border-box;
​}
​
​.div2 {
​ width: 300px;
​ height: 100px;
​ padding: 50px;
​ border: 1px solid red;
​ box-sizing: border-box;
​}
​</style>

Example of JavaScript code:

<script>
​const obj = {name: "John", age: 30, city: "New York"};
​const myJSON = JSON.stringify(obj);
​document.getElementById("demo").innerHTML = myJSON;
​</script>
​Observed Behavior:
Questions from tests containing JavaScript or CSS code are grayed out and cannot be selected for reuse, preventing instructors from reusing these questions.
​Expected Behavior:
Instructors should be able to select any question for reuse without restrictions.
​

Affected Versions

  • Learn 3900.76.0

  • Learn 3900.78.0

  • Learn 3900.80.0

  • Learn 3900.82.0

  • Learn 3900.84.0

Target Release

Will Not Fix

Information

The confirmed issue is reproducible in both internal Ultra and Original environments.

Did this answer your question?